summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-05-16 19:10:43 +0000
committerJohn Marino <marino@FreeBSD.org>2015-05-16 19:10:43 +0000
commitcc099ba5464efefd1826ac4d83f857290c40745d (patch)
treec4ff89ccf6f4af5b41d245d65e6eeb58fc30b717
parent- use USERS/GROUPS (diff)
mail/milter-bogom: Fix build on systems without base sendmail
There was an attempt to support ports sendmail made, but the attempt didn't work. Well, it accidently worked because the compilers looked for headers and libraries at LOCALBASE/include and LOCALBASE/lib so the bad LDFLAGS value was ignored. Fix ports-sendmail LDFLAGS and explicitly set -I so milter-bogom builds on all compilers. Approved by: just fix it
Notes
Notes: svn path=/head/; revision=386570
-rw-r--r--mail/milter-bogom/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/milter-bogom/Makefile b/mail/milter-bogom/Makefile
index 0d97a755f68a..3310eddfe5a9 100644
--- a/mail/milter-bogom/Makefile
+++ b/mail/milter-bogom/Makefile
@@ -16,7 +16,8 @@ RUN_DEPENDS= bogofilter:${PORTSDIR}/mail/bogofilter
.if !exists(/usr/lib/libmilter.so)
LIB_DEPENDS= libmilter.so:${PORTSDIR}/mail/sendmail
-LDFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+CFLAGS+= -I${LOCALBASE}/include
.endif
MAKE_ARGS= CPPFLAGS="-DDEF_CONF=\\\"${PREFIX}/etc/bogom.conf\\\"" \