From: Travis Cross Date: Tue, 13 May 2014 17:27:46 +0000 (+0000) Subject: Cleanup makefile library dependencies of mod_snmp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04a55bbdf99082a39cfff86f51d9beee41eb91b1;p=thirdparty%2Ffreeswitch.git Cleanup makefile library dependencies of mod_snmp Calling out to net-snmp-config --agent-libs causes transitive dependencies to get pulled in, but we don't need those -- a sensible dynamic linker pulls those in automatically. Trying to track the transitive dependencies manually would be a losing battle. People were recently hitting this on Debian sid/jessie, where libpci is in the transitive dependency list but isn't otherwise one of our build dependencies. --- diff --git a/src/mod/event_handlers/mod_snmp/Makefile b/src/mod/event_handlers/mod_snmp/Makefile index f95227b4b5..d1f90875f1 100644 --- a/src/mod/event_handlers/mod_snmp/Makefile +++ b/src/mod/event_handlers/mod_snmp/Makefile @@ -1,7 +1,7 @@ include ../../../../build/modmake.rules LOCAL_CFLAGS=`net-snmp-config --cflags` -LOCAL_LDFLAGS=`net-snmp-config --agent-libs` +LOCAL_LDFLAGS=-lnetsnmpmibs -lnetsnmpagent -lnetsnmp LOCAL_OBJS=subagent.o local_depend: $(LOCAL_OBJS)