From 2bab67f1971f4839265d0376aa614f92e37ace23 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 15 Oct 2024 21:08:20 +0200 Subject: [PATCH] Revert "build: try to build SNMP with --base-lib-cflags" This reverts commit 3e3ba6e8dd93b2adf6a46b6345e7ff2f3ae7f962. This does not work as it also includes -D_FORTIFY_SOURCE=x... --- NEWS | 1 - m4/snmp.m4 | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/NEWS b/NEWS index e6a04dc4..f0268519 100644 --- a/NEWS +++ b/NEWS @@ -3,7 +3,6 @@ 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 b36f4225..a9ac8402 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-lib-cflags` + NETSNMP_CFLAGS="`${NETSNMP_CONFIG} --base-cflags | sed 's/-D_FORTIFY_SOURCE=.//'` -DNETSNMP_NO_INLINE" _save_flags="$CFLAGS" _save_libs="$LIBS" -- 2.39.5