From: Travis Cross Date: Tue, 13 May 2014 17:36:15 +0000 (+0000) Subject: Avoid polluting CFLAGS for mod_snmp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af707ed2066a246fbbc32dbef6b53fcca26b150;p=thirdparty%2Ffreeswitch.git Avoid polluting CFLAGS for mod_snmp Putting `net-snmp-config --cflags` into CFLAGS causes major pollution; it overrides optimization and debugging levels, warnings, and more. While normally we do want to automatically locate library headers, there has to be a better way to do this. libsnmp is normally in the usual place and doesn't need special handling. Perhaps people with libsnmp in a weird place should just need to add the -I flag to their CFLAGS before build. --- diff --git a/src/mod/event_handlers/mod_snmp/Makefile b/src/mod/event_handlers/mod_snmp/Makefile index d1f90875f1..db3a4326b2 100644 --- a/src/mod/event_handlers/mod_snmp/Makefile +++ b/src/mod/event_handlers/mod_snmp/Makefile @@ -1,6 +1,5 @@ include ../../../../build/modmake.rules -LOCAL_CFLAGS=`net-snmp-config --cflags` LOCAL_LDFLAGS=-lnetsnmpmibs -lnetsnmpagent -lnetsnmp LOCAL_OBJS=subagent.o