From: Travis Cross Date: Tue, 13 May 2014 17:27:46 +0000 (+0000) Subject: Cleanup makefile library dependencies of mod_snmp X-Git-Tag: v1.4.4~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94ec447e0dc8fe87b88b4e27c96679a863441712;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.am b/src/mod/event_handlers/mod_snmp/Makefile.am index 7c84fdd1bc..b8cd61aaf2 100644 --- a/src/mod/event_handlers/mod_snmp/Makefile.am +++ b/src/mod/event_handlers/mod_snmp/Makefile.am @@ -4,5 +4,5 @@ MODNAME=mod_snmp mod_LTLIBRARIES = mod_snmp.la mod_snmp_la_SOURCES = mod_snmp.c subagent.c mod_snmp_la_CFLAGS = $(AM_CFLAGS) `net-snmp-config --cflags` -mod_snmp_la_LIBADD = $(switch_builddir)/libfreeswitch.la -mod_snmp_la_LDFLAGS = -avoid-version -module -no-undefined -shared `net-snmp-config --agent-libs` +mod_snmp_la_LIBADD = $(switch_builddir)/libfreeswitch.la -lnetsnmpmibs -lnetsnmpagent -lnetsnmp +mod_snmp_la_LDFLAGS = -avoid-version -module -no-undefined -shared