diff --git a/.github/monitoring-plugins.spec b/.github/monitoring-plugins.spec index e3465227..b6c844f8 100644 --- a/.github/monitoring-plugins.spec +++ b/.github/monitoring-plugins.spec @@ -37,6 +37,7 @@ BuildRequires: gettext-devel BuildRequires: gcc BuildRequires: make BuildRequires: automake +BuildRequires: pkgconf ### Check Plugin specific build requirements # check_by_ssh diff --git a/plugins/Makefile.am b/plugins/Makefile.am index a35f273e..8868ca57 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -165,8 +165,8 @@ check_radius_LDADD = $(NETLIBS) $(RADIUSLIBS) check_real_LDADD = $(NETLIBS) check_snmp_SOURCES = check_snmp.c check_snmp.d/check_snmp_helpers.c check_snmp_LDADD = $(BASEOBJS) -check_snmp_LDFLAGS = $(AM_LDFLAGS) -lm `net-snmp-config --libs` -check_snmp_CFLAGS = $(AM_CFLAGS) `net-snmp-config --cflags` +check_snmp_LDFLAGS = $(AM_LDFLAGS) -lm `pkg-config --libs netsnmp` +check_snmp_CFLAGS = $(AM_CFLAGS) `pkg-config --cflags netsnmp` check_smtp_LDADD = $(SSLOBJS) check_ssh_LDADD = $(NETLIBS) check_swap_SOURCES = check_swap.c check_swap.d/swap.c