From: Vincent Bernat Date: Tue, 15 Oct 2024 19:00:51 +0000 (+0200) Subject: build: remove -D_FORTIFY_SOURCE= from NetSNMP CFLAGS X-Git-Tag: 1.0.19~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1499dc28b47a8985d5237a907e3884222973e307;p=thirdparty%2Flldpd.git build: remove -D_FORTIFY_SOURCE= from NetSNMP CFLAGS This is really a pain... --- diff --git a/m4/snmp.m4 b/m4/snmp.m4 index 8e4b496f..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-cflags` -DNETSNMP_NO_INLINE" + NETSNMP_CFLAGS="`${NETSNMP_CONFIG} --base-cflags | sed 's/-D_FORTIFY_SOURCE=.//'` -DNETSNMP_NO_INLINE" _save_flags="$CFLAGS" _save_libs="$LIBS"