From owner-cvs-all Wed Sep 13 11: 2:24 2000 Delivered-To: cvs-all@freebsd.org Received: from netplex.com.au (adsl-63-207-30-186.dsl.snfc21.pacbell.net [63.207.30.186]) by hub.freebsd.org (Postfix) with ESMTP id DFC4937B422; Wed, 13 Sep 2000 11:02:20 -0700 (PDT) Received: from netplex.com.au (peter@localhost [127.0.0.1]) by netplex.com.au (8.11.0/8.9.3) with ESMTP id e8DHutG95016; Wed, 13 Sep 2000 10:56:55 -0700 (PDT) (envelope-from peter@netplex.com.au) Message-Id: <200009131756.e8DHutG95016@netplex.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: Gregory Neil Shapiro Cc: "Steven E. Ames" , "Gregory Neil Shapiro" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/sendmail Makefile In-Reply-To: <14783.46656.379284.570690@horsey.gshapiro.net> Date: Wed, 13 Sep 2000 10:56:55 -0700 From: Peter Wemm Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gregory Neil Shapiro wrote: > steve> Am I missing something obvious? How do I add libraries (e.g. Cyrus SAS L) > steve> without modifying this Makefile (which is what I normally do)... I'm > steve> maybe not seeing or understanding the hooks? > > Add this to /etc/make.conf: > > .if ${.CURDIR} == "/usr/src/usr.sbin/sendmail" > CFLAGS+=-DSASL -I/usr/local/include/sasl > LDADD+=-L/usr/local/lib -lsasl > .endif Oh my, this is scarey. :-) May I suggest something like this instead? Add SASL_PREFIX=/usr/local to /etc/make.conf and in the sendmail Makefile: .if defined(SASL_PREFIX) CFLAGS+= -DSASL -I${SASL_PREFIX}/include/sasl LDADD+= -L{$SASL_PREFIX}/lib -lsasl .endif The user exposure is much smaller then. They just have to add the location of the SASL stuff. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message