summaryrefslogtreecommitdiffstats
path: root/plugins/Makefile.am
diff options
context:
space:
mode:
authorStuart Henderson <stu@spacehopper.org>2025-12-24 14:57:57 +0000
committerStuart Henderson <stu@spacehopper.org>2025-12-24 14:57:57 +0000
commite2694816e78986f7a97691dc5b013cbeb7eede4f (patch)
tree1b4d5342c8d419eec4fb4ab9ca9165daa0878a0c /plugins/Makefile.am
parent828a9720b10814c5836d03aa35af05d196c4104b (diff)
downloadmonitoring-plugins-e2694816e78986f7a97691dc5b013cbeb7eede4f.tar.gz
use pkg-config XX netsnmp instead of net-snmp-config XX
net-snmp-config --cflags returns the flags used to build Net-SNMP, which in 5.9.5+ includes -Werror=declaration-after-statement; code in check_snmp.c is not ready for this. "pkg-config --cflags netsnmp" just returns flags needed to build against the library.
Diffstat (limited to 'plugins/Makefile.am')
-rw-r--r--plugins/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index d098fa8a..cf06c70c 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -164,8 +164,8 @@ check_radius_LDADD = $(NETLIBS) $(RADIUSLIBS)
164check_real_LDADD = $(NETLIBS) 164check_real_LDADD = $(NETLIBS)
165check_snmp_SOURCES = check_snmp.c check_snmp.d/check_snmp_helpers.c 165check_snmp_SOURCES = check_snmp.c check_snmp.d/check_snmp_helpers.c
166check_snmp_LDADD = $(BASEOBJS) 166check_snmp_LDADD = $(BASEOBJS)
167check_snmp_LDFLAGS = $(AM_LDFLAGS) `net-snmp-config --libs` 167check_snmp_LDFLAGS = $(AM_LDFLAGS) `pkg-config --libs netsnmp`
168check_snmp_CFLAGS = $(AM_CFLAGS) `net-snmp-config --cflags` 168check_snmp_CFLAGS = $(AM_CFLAGS) `pkg-config --cflags netsnmp`
169check_smtp_LDADD = $(SSLOBJS) 169check_smtp_LDADD = $(SSLOBJS)
170check_ssh_LDADD = $(NETLIBS) 170check_ssh_LDADD = $(NETLIBS)
171check_swap_SOURCES = check_swap.c check_swap.d/swap.c 171check_swap_SOURCES = check_swap.c check_swap.d/swap.c