]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: try to build SNMP with --base-lib-cflags
authorVincent Bernat <vincent@bernat.ch>
Tue, 15 Oct 2024 19:02:50 +0000 (21:02 +0200)
committerVincent Bernat <vincent@bernat.ch>
Tue, 15 Oct 2024 19:06:10 +0000 (21:06 +0200)
In the past, this was not working correctly. Let's see if the situation
has improved.

NEWS
m4/snmp.m4

diff --git a/NEWS b/NEWS
index f02685193cfb3c4ae7802c01f236c0271bd8a71c..e6a04dc4a04e87235bc1ec170e98550901bfe569 100644 (file)
--- 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):
index a9ac84024be9afaf1cf3566c476378b66f8b027e..b36f422585a760181c8ae655b59921f5b6477278 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-cflags | sed 's/-D_FORTIFY_SOURCE=.//'` -DNETSNMP_NO_INLINE"
+      NETSNMP_CFLAGS=`${NETSNMP_CONFIG} --base-lib-cflags`
 
       _save_flags="$CFLAGS"
       _save_libs="$LIBS"