From 1cbcd00c0490206c551ca147b5febde50bb6689b Mon Sep 17 00:00:00 2001 From: Marc Balmer Date: Sat, 4 Feb 2006 09:46:24 +0000 Subject: Don't link libmilter against libldap and liblber if WANT_LDAP is defined in /etc/mk.conf. Fixes PR 4928 ok millert --- gnu/usr.sbin/sendmail/Makefile.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu') 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 .include @@ -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 -- cgit v1.2.3