Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2000 10:56:55 -0700
From:      Peter Wemm <peter@netplex.com.au>
To:        Gregory Neil Shapiro <gshapiro@gshapiro.net>
Cc:        "Steven E. Ames" <steve@virtual-voodoo.com>, "Gregory Neil Shapiro" <gshapiro@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/sendmail Makefile 
Message-ID:  <200009131756.e8DHutG95016@netplex.com.au>
In-Reply-To: <14783.46656.379284.570690@horsey.gshapiro.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009131756.e8DHutG95016>