From owner-freebsd-current@FreeBSD.ORG Tue Nov 29 17:30:40 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA12916A41F for ; Tue, 29 Nov 2005 17:30:40 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AA5D43D76 for ; Tue, 29 Nov 2005 17:30:25 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.12.10/8.12.9) with ESMTP id jATHW5Px037894; Tue, 29 Nov 2005 17:32:05 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.13.4/8.12.9/Submit) id jATHW504037893; Tue, 29 Nov 2005 17:32:05 GMT (envelope-from dunstan) Date: Tue, 29 Nov 2005 17:32:05 +0000 From: "Wojciech A. Koszek" To: Scot Hetzel Message-ID: <20051129173205.GA37877@freebsd.czest.pl> References: <20051121162544.GB94958@freebsd.czest.pl> <790a9fff0511250903q931b66cte7a3e6555dc38f83@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <790a9fff0511250903q931b66cte7a3e6555dc38f83@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: Linking basesystem with additional libraries. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 17:30:40 -0000 On Fri, Nov 25, 2005 at 11:03:42AM -0600, Scot Hetzel wrote: > On 11/21/05, Wojciech A. Koszek wrote: > > Hello, > > > > Is there any reason why we couldn't have LDADD honored in "buildworld" > > process? If there are no negative implications, I volunteer to do the > > work. I'd find it really useful. > > > What do you want to link the base system with? > > Currently, the base sendmail can be linked with the > security/cyrus-sasl* ports by setting: > > # SENDMAIL_CFLAGS=-I/usr/local/include -DSASL2 > # SENDMAIL_LDFLAGS=-L/usr/local/lib > # SENDMAIL_LDADD=-lsasl2 > > in /etc/make.conf. You could possibly link sendmail with one of the > openldap ports also. Haven't tried it myself yet. > > Note: This may cause a busted sendmail, especially during a major > version upgrade. A rebuild of the security/cyrus-sasl* port, and > sendmail will fix it. Hello, Sorry for late response. Truly speaking I want to use this functionality to link basesystem with alternative malloc(9) implementation, just like this from libefence. This is how I discovered one of the allocation problems in FreeBSD basesystem. Doing this kind of tests does not work in some cases when LD_* variables are used. Looking at recent posts, I think new malloc implementation (patch posted by Jason Evans) could also be tested in this way. I also use SENDMAIL_* macros and although difficulties you've written about, choice. I think it's advantage to have them. And please note, that it's system administrator choice to play with custom libraries. -- * Wojciech A. Koszek && dunstan@FreeBSD.czest.pl