svn commit: r367619 - head/net-mgmt/net-snmp

Ryan Steinmetz zi at FreeBSD.org
Mon Sep 8 12:20:37 UTC 2014


Author: zi
Date: Mon Sep  8 12:20:36 2014
New Revision: 367619
URL: http://svnweb.freebsd.org/changeset/ports/367619
QAT: https://qat.redports.org/buildarchive/r367619/

Log:
  - Fix build when PREFIX != PKG_PREFIX
  
  PR:		193358
  Submitted by:	dinox@

Modified:
  head/net-mgmt/net-snmp/Makefile

Modified: head/net-mgmt/net-snmp/Makefile
==============================================================================
--- head/net-mgmt/net-snmp/Makefile	Mon Sep  8 12:18:13 2014	(r367618)
+++ head/net-mgmt/net-snmp/Makefile	Mon Sep  8 12:20:36 2014	(r367619)
@@ -39,7 +39,7 @@ USE_LDCONFIG=	yes
 USES=		perl5 libtool
 USE_PERL5=	build run fixpacklist
 
-CFLAGS+=	-I${LOCALBASE}/include
+CFLAGS+=	-I${LOCALBASE}/include -I${PKG_PREFIX}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 CONFIGURE_ENV+=	PERLPROG="${PERL}" PSPROG="${PS_CMD}" SED="${SED}"
 CONFIGURE_ARGS+=--enable-shared --enable-internal-md5 \
@@ -49,7 +49,7 @@ CONFIGURE_ARGS+=--enable-shared --enable
 		--with-logfile="${NET_SNMP_LOGFILE}" \
 		--with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
 		--with-gnu-ld --with-libwrap \
-		--with-ldflags="-lm -lkvm -ldevstat -lpkg -L${LOCALBASE}/lib ${LCRYPTO}"
+		--with-ldflags="-lm -lkvm -ldevstat -lpkg -L${LOCALBASE}/lib -L${PKG_PREFIX}/lib ${LCRYPTO}"
 SUB_FILES=	pkg-message
 
 .if defined(BATCH)


More information about the svn-ports-head mailing list