]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Avoid polluting CFLAGS for mod_snmp
authorTravis Cross <tc@traviscross.com>
Tue, 13 May 2014 17:36:15 +0000 (17:36 +0000)
committerTravis Cross <tc@traviscross.com>
Tue, 13 May 2014 18:32:05 +0000 (18:32 +0000)
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.

src/mod/event_handlers/mod_snmp/Makefile

index d1f90875f114e811761f14dac74b60a5714ae9fc..db3a4326b272ee13f77f49b17915203d4831d5b9 100644 (file)
@@ -1,6 +1,5 @@
 include ../../../../build/modmake.rules
 
-LOCAL_CFLAGS=`net-snmp-config --cflags`
 LOCAL_LDFLAGS=-lnetsnmpmibs -lnetsnmpagent -lnetsnmp
 LOCAL_OBJS=subagent.o