From: Vincent Bernat Date: Sat, 11 Jan 2025 11:32:17 +0000 (+0100) Subject: build: remove hacks around NetSNMP X-Git-Tag: 1.0.19~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86859e3d8745a153180c985b4c694de32fd9e05b;p=thirdparty%2Flldpd.git build: remove hacks around NetSNMP The workaround for -D_FORTIFY_SOURCE was failing on Fedora because it was not robust enough. The current version was tested with: - Fedora 41 - Debian 10 - Ubuntu Trusty (14.04) - CentOS 7 --- diff --git a/m4/snmp.m4 b/m4/snmp.m4 index a9ac8402..7bf75e4e 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-cflags` _save_flags="$CFLAGS" _save_libs="$LIBS"