Don't use GNU malloc() any more.

This commit is contained in:
mycroft 1999-07-30 04:07:23 +00:00
parent a18e0fb5ab
commit 41147083cf
15 changed files with 22 additions and 57 deletions

View File

@ -21,11 +21,3 @@ newconfigdir= /etc/uucp
# The directory to look in for BNU (when using HAVE_BNU_CONFIG) or
# V2 (when using HAVE_V2_CONFIG) style configuration files.
oldconfigdir= /etc/uucp
# this is sick, but much easier than putting in the individual programs'
# makefiles.
.if defined(PROG)
# use gnu malloc
LDADD+= -lgnumalloc
DPADD+= /usr/lib/libgnumalloc.a
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 1998/09/12 21:53:30 frueauf Exp $
# $NetBSD: Makefile,v 1.7 1999/07/30 04:07:23 mycroft Exp $
PROG= cpio
CPPFLAGS+= -I${.CURDIR} -DRETSIGTYPE=void -DHAVE_SYS_MTIO_H=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UTIME_H=1 -DHAVE_STRERROR=1 -DHAVE_VPRINTF=1 -DHAVE_LCHOWN=1 -DDIRENT=1
@ -8,7 +8,4 @@ SRCS = copyin.c copyout.c copypass.c defer.c dstring.c fnmatch.c global.c \
rtapelib.c dirname.c idcache.c makepath.c xmalloc.c stripslash.c \
userspec.c xstrdup.c
LDADD+= -lgnumalloc
DPADD+= ${LIBGNUMALLOC}
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 1999/02/12 12:45:03 tv Exp $
# $NetBSD: Makefile,v 1.13 1999/07/30 04:07:24 mycroft Exp $
PROG= diff
SRCS= diff.c analyze.c cmpbuf.c io.c context.c ed.c normal.c util.c \
@ -6,8 +6,6 @@ SRCS= diff.c analyze.c cmpbuf.c io.c context.c ed.c normal.c util.c \
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} -I${DIST}/diffutils \
-DPR_PROGRAM=\"/usr/bin/pr\"
LDADD+= -lgnumalloc
DPADD+= ${LIBGNUMALLOC}
TEXINFO= diff.texi

View File

@ -1,13 +1,10 @@
# $NetBSD: Makefile,v 1.10 1999/02/12 12:45:13 tv Exp $
# $NetBSD: Makefile,v 1.11 1999/07/30 04:07:24 mycroft Exp $
PROG= diff3
SRCS= diff3.c getopt.c getopt1.c version.c
CPPFLAGS+= -I${.CURDIR}/../diff -I${DIST}/diffutils \
-DHAVE_CONFIG_H -DDIFF_PROGRAM=\"/usr/bin/diff\"
LDADD+= -lgnumalloc
DPADD+= ${LIBGNUMALLOC}
DIST= ${.CURDIR}/../../dist
.PATH: ${.CURDIR}/../diff ${DIST}/diffutils

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.19 1999/03/17 00:46:35 thorpej Exp $
# $NetBSD: Makefile.inc,v 1.20 1999/07/30 04:07:23 mycroft Exp $
.if !defined(GCC_MAKEFILE_INC)
GCC_MAKEFILE_INC=1
@ -40,9 +40,6 @@ CPPFLAGS+=-DDEFAULT_ELF
HOST_CPPFLAGS= ${CPPFLAGS}
LDADD+= -lgnumalloc
DPADD+= ${LIBGNUMALLOC}
.PATH: ${.CURDIR}/../arch \
${DIST} \
${DIST}/config

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 1999/03/05 07:23:51 mycroft Exp $
# $NetBSD: Makefile,v 1.10 1999/07/30 04:07:25 mycroft Exp $
#
.include <bsd.own.mk>
@ -23,8 +23,8 @@ CPPFLAGS+= -I${.CURDIR}/arch/${TARGET_ARCH} \
-I${DIST}/gas -I${DIST}/gas/config -I${BFDOBJ} \
-I${DIST}/bfd -I${DIST}/include -I${DIST} \
-D_GNU_SOURCE
LDADD+= -L${BFDOBJ} -lbfd -lgnumalloc
DPADD+= ${BFDOBJ}/libbfd_pic.a ${LIBGNUMALLOC}
LDADD+= -L${BFDOBJ} -lbfd
DPADD+= ${BFDOBJ}/libbfd_pic.a
DIST= ${.CURDIR}/../../dist
BFDOBJ!= cd ${.CURDIR}/../../lib/libbfd && ${MAKE} print-objdir

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.25 1997/10/25 10:10:35 lukem Exp $
# $NetBSD: Makefile,v 1.26 1999/07/30 04:07:24 mycroft Exp $
# @(#)Makefile 6.1 (Berkeley) 3/3/91
TARGET_MACHINE_ARCH?= $(MACHINE_ARCH)
@ -37,8 +37,6 @@ SRCS+= app.c as.c atof-generic.c bignum-copy.c \
CPPFLAGS+= -I$(.CURDIR) ${ADDINCLUDE} -I$(.CURDIR)/config \
-DOLD_GAS -DSIGTY=void -Derror=as_fatal \
-DNETBSD_AOUT
#LDADD+= -lgnumalloc
#DPADD+= ${LIBGNUMALLOC}
CONF_HEADERS= targ-cpu.h obj-format.h host.h targ-env.h

View File

@ -1,9 +1,4 @@
# $NetBSD: Makefile.cfg,v 1.26 1999/02/13 02:54:26 lukem Exp $
.if defined(PROG)
LDADD+= -lgnumalloc
DPADD+= /usr/lib/libgnumalloc.a
.endif
# $NetBSD: Makefile.cfg,v 1.27 1999/07/30 04:07:25 mycroft Exp $
MKLINT= no

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.27 1999/07/25 07:06:05 simonb Exp $
# $NetBSD: Makefile,v 1.28 1999/07/30 04:07:25 mycroft Exp $
.include <bsd.own.mk>
@ -20,8 +20,8 @@ MATCHCPPFLAGS+=-DNO_UNDERLINE
.endif # m68k || i386
LDSTATIC?= -static
LDADD+= -lgnumalloc -lbz2
DPADD+= ${LIBGNUMALLOC} ${LIBBZ2}
LDADD+= -lbz2
DPADD+= ${LIBBZ2}
MLINKS+= gzip.1 gunzip.1 gzip.1 gzcat.1 gzip.1 zcat.1
MLINKS+= zdiff.1 zcmp.1

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 1999/07/24 09:09:39 mrg Exp $
# $NetBSD: Makefile,v 1.14 1999/07/30 04:07:26 mycroft Exp $
# for OBJECT_FMT
.include <bsd.own.mk>
@ -30,8 +30,8 @@ CPPFLAGS+= -I. -I${.CURDIR} -I${BFDOBJ} -I${DIST}/ld \
-DSCRIPTDIR=\"${SCRIPTDIR}\" \
-DTARGET='"${MACHINE_GNU_ARCH}--netbsd"' \
-DEMULATION_LIST='${EMULS:S/^/\&ld_/:S/$/_emulation,/} 0'
LDADD+= -L${BFDOBJ} -lbfd -lgnumalloc
DPADD+= ${BFDOBJ}/libbfd_pic.a ${LIBGNUMALLOC}
LDADD+= -L${BFDOBJ} -lbfd
DPADD+= ${BFDOBJ}/libbfd_pic.a
YHEADER=1
DIST= ${.CURDIR}/../../dist

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 1998/12/17 14:34:51 pk Exp $
# $NetBSD: Makefile,v 1.6 1999/07/30 04:07:25 mycroft Exp $
.if (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "m68k") || \
@ -11,8 +11,6 @@ SRCS= ld.c symbol.c lib.c shlib.c warnings.c rrs.c xbits.c md.c
.if defined(DEBUG)
CPPFLAGS+=-DDEBUG
.endif
LDADD+= -lgnumalloc
DPADD+= /usr/lib/libgnumalloc.a
BINDIR=/usr/bin
.endif

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile.inc,v 1.9 1997/10/25 10:12:48 lukem Exp $
# $NetBSD: Makefile.inc,v 1.10 1999/07/30 04:07:26 mycroft Exp $
LIBRCS!=cd $(.CURDIR)/../lib; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/librcs.a\n" | ${MAKE} -s -f-
CPPFLAGS+=-I${.CURDIR}/../lib
LDADD= ${LIBRCS} -lgnumalloc
DPADD= ${LIBRCS} ${LIBGNUMALLOC}
LDADD= ${LIBRCS}
DPADD= ${LIBRCS}
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"

View File

@ -1,13 +1,10 @@
# $NetBSD: Makefile,v 1.9 1999/02/12 12:45:13 tv Exp $
# $NetBSD: Makefile,v 1.10 1999/07/30 04:07:26 mycroft Exp $
PROG= sdiff
SRCS= sdiff.c getopt.c getopt1.c version.c
CPPFLAGS+= -I${.CURDIR}/../diff -I${DIST}/diffutils \
-DHAVE_CONFIG_H -DDIFF_PROGRAM=\"/usr/bin/diff\"
LDADD+= -lgnumalloc
DPADD+= ${LIBGNUMALLOC}
DIST= ${.CURDIR}/../../dist
.PATH: ${.CURDIR}/../diff ${DIST}/diffutils

View File

@ -1,7 +1,5 @@
# $NetBSD: Makefile,v 1.5 1997/03/24 22:06:51 christos Exp $
# $NetBSD: Makefile,v 1.6 1999/07/30 04:07:23 mycroft Exp $
PROG= sort
LDADD+= -lgnumalloc
DPADD+= ${LIBGNUMALLOC}
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 1998/07/21 08:06:55 fair Exp $
# $NetBSD: Makefile,v 1.20 1999/07/30 04:07:25 mycroft Exp $
.include <bsd.own.mk>
@ -16,8 +16,6 @@ CPPFLAGS+= -DDEF_AR_FILE=\"/dev/rst0\" -DDEFBLOCKING=20
CPPFLAGS+= -DSTDC_HEADERS -DENABLE_SPARSE
LDSTATIC?= -static
LDADD+= -lgnumalloc
DPADD+= ${LIBGNUMALLOC}
MAN=tar.1