diff options
| author | Stuart Henderson <stu@spacehopper.org> | 2025-12-24 14:57:57 +0000 |
|---|---|---|
| committer | Stuart Henderson <stu@spacehopper.org> | 2025-12-24 14:57:57 +0000 |
| commit | e2694816e78986f7a97691dc5b013cbeb7eede4f (patch) | |
| tree | 1b4d5342c8d419eec4fb4ab9ca9165daa0878a0c /plugins/Makefile.am | |
| parent | 828a9720b10814c5836d03aa35af05d196c4104b (diff) | |
| download | monitoring-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.am | 4 |
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) | |||
| 164 | check_real_LDADD = $(NETLIBS) | 164 | check_real_LDADD = $(NETLIBS) |
| 165 | check_snmp_SOURCES = check_snmp.c check_snmp.d/check_snmp_helpers.c | 165 | check_snmp_SOURCES = check_snmp.c check_snmp.d/check_snmp_helpers.c |
| 166 | check_snmp_LDADD = $(BASEOBJS) | 166 | check_snmp_LDADD = $(BASEOBJS) |
| 167 | check_snmp_LDFLAGS = $(AM_LDFLAGS) `net-snmp-config --libs` | 167 | check_snmp_LDFLAGS = $(AM_LDFLAGS) `pkg-config --libs netsnmp` |
| 168 | check_snmp_CFLAGS = $(AM_CFLAGS) `net-snmp-config --cflags` | 168 | check_snmp_CFLAGS = $(AM_CFLAGS) `pkg-config --cflags netsnmp` |
| 169 | check_smtp_LDADD = $(SSLOBJS) | 169 | check_smtp_LDADD = $(SSLOBJS) |
| 170 | check_ssh_LDADD = $(NETLIBS) | 170 | check_ssh_LDADD = $(NETLIBS) |
| 171 | check_swap_SOURCES = check_swap.c check_swap.d/swap.c | 171 | check_swap_SOURCES = check_swap.c check_swap.d/swap.c |
