1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Tweak CONFIGURE_ARGS to pass appropriate flags to ld

- Fix PLIST when WITHOUT_PERL_EMBEDDED=yes

PR:		ports/146559[1]
		ports/146268[2]
		ports/146084[3]
		ports/146490[4]
Submitted by:	sahil@ [1]
		Josh Carroll <josh.carroll@gmail.com> [2]
		Anton Gorlov <gorlov.a@gmail.com> [3]
		Heino Tiedemann <rotkap@gmx.de> [4]
This commit is contained in:
Sylvio Cesar Teixeira 2010-05-16 19:42:27 +00:00
parent 9efaf0e19d
commit 9cb79ba80f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=254448
2 changed files with 4 additions and 2 deletions

View File

@ -40,7 +40,7 @@ CONFIGURE_ARGS+=--enable-shared --enable-internal-md5 \
--with-sys-location="${NET_SNMP_SYS_LOCATION}" \
--with-logfile="${NET_SNMP_LOGFILE}" \
--with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
--with-gnu-ld --with-libwrap --with-libs="-lm -lkvm -ldevstat"
--with-gnu-ld --with-libwrap --with-ldflags="-lm -lkvm -ldevstat"
.if defined(BATCH)
CONFIGURE_ARGS+=--with-defaults
@ -66,8 +66,10 @@ USE_PERL5= yes
CONFIGURE_ARGS+=--with-perl-modules
.if defined(WITHOUT_PERL_EMBEDDED)
CONFIGURE_ARGS+=--disable-embedded-perl
PLIST_SUB+= WITH_PERL_EMBEDDED="@comment "
.else
CONFIGURE_ARGS+=--enable-embedded-perl
PLIST_SUB+= WITH_PERL_EMBEDDED=""
.endif
PLIST_SUB+= WITH_PERL=""
.else

View File

@ -398,7 +398,7 @@ sbin/snmptrapd
%%DATADIR%%/mibs/UCD-SNMP-MIB.txt
%%DATADIR%%/mibs/UDP-MIB.txt
@unexec rm -f %D/%%DATADIR%%/mibs/.index 2>/dev/null || true
%%WITH_PERL%%%%DATADIR%%/snmp_perl.pl
%%WITH_PERL_EMBEDDED%%%%DATADIR%%/snmp_perl.pl
%%DATADIR%%/snmpconf-data/snmp-data/authopts
%%DATADIR%%/snmpconf-data/snmp-data/debugging
%%DATADIR%%/snmpconf-data/snmp-data/mibs