From owner-freebsd-current Sat Jun 3 21:14:15 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id VAA13268 for current-outgoing; Sat, 3 Jun 1995 21:14:15 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id VAA13262 for ; Sat, 3 Jun 1995 21:14:13 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id VAA18199; Sat, 3 Jun 1995 21:12:32 -0700 From: "Rodney W. Grimes" Message-Id: <199506040412.VAA18199@gndrsh.aac.dev.com> Subject: Re: Some Makefiles incorrectly set LDADD To: phk@ref.tfs.com (Poul-Henning Kamp) Date: Sat, 3 Jun 1995 21:12:32 -0700 (PDT) Cc: roberto@keltia.freenix.fr, freebsd-current@FreeBSD.ORG In-Reply-To: <199506040206.TAA14701@ref.tfs.com> from "Poul-Henning Kamp" at Jun 3, 95 07:06:25 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 987 Sender: current-owner@FreeBSD.ORG Precedence: bulk > > > > date/Makefile:LDADD= -lutil > > > mv/Makefile:LDADD= -lutil > > > ps/Makefile:LDADD= -lm -lkvm > > > rcp/Makefile:LDADD= -lkrb -ldes > > > sh/Makefile:LDADD= -ll -ledit -ltermcap > > ^^^ > > LDADD should not be set with a += in a Makefile unless that Makefile > > has mutliple LDADD lines with in it. > > Well, then we will have no easy way to do for instance what the original > message said, recompile everything with a particular library :-( It is very easy to override a specific library, the problem here is that the malloc code is burried in libc. You could build a new libc with the new malloc code and do this: MAKE LIBC= /usr/lib/mylibc.a See bsd.prog.mk, the ${LIB*} strings are all define with ?= to be overrided easily. Don't drive a square peg into a round hole :-) :-) -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD