]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Revert "build: try to build SNMP with --base-lib-cflags"
authorVincent Bernat <vincent@bernat.ch>
Tue, 15 Oct 2024 19:08:20 +0000 (21:08 +0200)
committerVincent Bernat <vincent@bernat.ch>
Tue, 15 Oct 2024 19:08:20 +0000 (21:08 +0200)
This reverts commit 3e3ba6e8dd93b2adf6a46b6345e7ff2f3ae7f962. This does
not work as it also includes -D_FORTIFY_SOURCE=x...

NEWS
m4/snmp.m4

diff --git a/NEWS b/NEWS
index e6a04dc4a04e87235bc1ec170e98550901bfe569..f02685193cfb3c4ae7802c01f236c0271bd8a71c 100644 (file)
--- 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):
index b36f422585a760181c8ae655b59921f5b6477278..a9ac84024be9afaf1cf3566c476378b66f8b027e 100644 (file)
@@ -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"