From: Vincent Bernat Date: Tue, 15 Oct 2024 19:02:50 +0000 (+0200) Subject: build: try to build SNMP with --base-lib-cflags X-Git-Tag: 1.0.19~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e3ba6e8dd93b2adf6a46b6345e7ff2f3ae7f962;p=thirdparty%2Flldpd.git build: try to build SNMP with --base-lib-cflags In the past, this was not working correctly. Let's see if the situation has improved. --- diff --git a/NEWS b/NEWS index f0268519..e6a04dc4 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ lldpd (1.0.19) + Support of both Apple Silicon and Intel for macOS package. + Add cvlan/svlan/tpmr capabilities. + Disable LLDP in firmware for Intel X7xx cards on FreeBSD. + + Invoke net-snmp-config with --base-lib-cflags. lldpd (1.0.18) * Changes (breaking): diff --git a/m4/snmp.m4 b/m4/snmp.m4 index a9ac8402..b36f4225 100644 --- a/m4/snmp.m4 +++ b/m4/snmp.m4 @@ -13,7 +13,7 @@ AC_DEFUN([lldp_CHECK_SNMP], [ else dnl Check it is working as expected NETSNMP_LIBS=`${NETSNMP_CONFIG} --agent-libs` - NETSNMP_CFLAGS="`${NETSNMP_CONFIG} --base-cflags | sed 's/-D_FORTIFY_SOURCE=.//'` -DNETSNMP_NO_INLINE" + NETSNMP_CFLAGS=`${NETSNMP_CONFIG} --base-lib-cflags` _save_flags="$CFLAGS" _save_libs="$LIBS"