diff --git a/osasnmpd/Makefile b/osasnmpd/Makefile index 15496b2b..8ce0932b 100644 --- a/osasnmpd/Makefile +++ b/osasnmpd/Makefile @@ -1,9 +1,10 @@ include ../common.mak -LDLIBS = `net-snmp-config --agent-libs` +NET_SNMP_CONFIG = net-snmp-config +LDLIBS = `$(NET_SNMP_CONFIG) --agent-libs` # On some Linux systems `net-snmp-config --agent-libs` introduces -pie, # therefore add -fPIC to prevent link failures. ALL_CFLAGS += -fPIC -ALL_CFLAGS += `net-snmp-config --cflags` +ALL_CFLAGS += `$(NET_SNMP_CONFIG) --cflags` OBJS = ibmOSAMib.o ibmOSAMibUtil.o osasnmpd.o