From 3e3ba6e8dd93b2adf6a46b6345e7ff2f3ae7f962 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 15 Oct 2024 21:02:50 +0200 Subject: [PATCH] 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. --- NEWS | 1 + m4/snmp.m4 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5