diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2006-02-04 09:46:24 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2006-02-04 09:46:24 +0000 |
commit | 1cbcd00c0490206c551ca147b5febde50bb6689b (patch) | |
tree | 0bd76a679987af5a5265e0307240c765ef778f53 /gnu | |
parent | e6407aa0835ef9c24a7f1b715bc233bd419ca3f5 (diff) |
Don't link libmilter against libldap and liblber if WANT_LDAP is defined
in /etc/mk.conf.
Fixes PR 4928
ok millert
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.sbin/sendmail/Makefile.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.sbin/sendmail/Makefile.inc b/gnu/usr.sbin/sendmail/Makefile.inc index bc39cc4e6f2..7f00b4e983b 100644 --- a/gnu/usr.sbin/sendmail/Makefile.inc +++ b/gnu/usr.sbin/sendmail/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.16 2004/06/24 03:59:23 millert Exp $ +# $OpenBSD: Makefile.inc,v 1.17 2006/02/04 09:46:23 mbalmer Exp $ .include <bsd.own.mk> .include <bsd.obj.mk> @@ -55,10 +55,12 @@ LDADD+= -lwrap # To build with LDAP map support define WANT_LDAP in /etc/mk.conf (unsupported) .if defined(WANT_LDAP) +.if !defined(LIB) || (${LIB} != "milter") ENVDEF+= -DLDAPMAP LDADD+=-lldap -llber CFLAGS+=-I/usr/local/include LDFLAGS+=-L/usr/local/lib .endif +.endif CFLAGS+=${ENVDEF} -I${.CURDIR}/../sendmail -I${.CURDIR}/../include |