Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2015 19:10:43 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r386570 - head/mail/milter-bogom
Message-ID:  <201505161910.t4GJAhSt044665@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat May 16 19:10:43 2015
New Revision: 386570
URL: https://svnweb.freebsd.org/changeset/ports/386570

Log:
  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

Modified:
  head/mail/milter-bogom/Makefile

Modified: head/mail/milter-bogom/Makefile
==============================================================================
--- head/mail/milter-bogom/Makefile	Sat May 16 18:45:43 2015	(r386569)
+++ head/mail/milter-bogom/Makefile	Sat May 16 19:10:43 2015	(r386570)
@@ -16,7 +16,8 @@ RUN_DEPENDS=	bogofilter:${PORTSDIR}/mail
 
 .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\\\"" \



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