Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2014 12:20:37 +0000 (UTC)
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r367619 - head/net-mgmt/net-snmp
Message-ID:  <201409081220.s88CKbfm036024@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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