diff --git a/res/Makefile b/res/Makefile index 08ee8e14a3d9ec4e5e57b424317207cd2b1a923f..bf09ffd0ac371c72ae264bfb89d4399ec238eed8 100644 --- a/res/Makefile +++ b/res/Makefile @@ -32,9 +32,9 @@ ifeq (${OSPLIB},) MODS:=$(filter-out res_osp.so,$(MODS)) endif -ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/net-snmp/net-snmp-config.h),) - SNMP_LDLIBS+=$(shell net-snmp-config --agent-libs) - MODS+=res_snmp.so +ifeq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/net-snmp/net-snmp-config.h),) + SNMP_LDLIBS+=$(shell net-snmp-config --agent-libs) + MODS:=$(filter-out res_snmp.so,$(MODS)) endif ifeq (${WITH_SMDI},)