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.
This commit is contained in:
Travis Cross
2014-05-13 17:36:15 +00:00
parent 04a55bbdf9
commit 9af707ed20
-1
View File
@@ -1,6 +1,5 @@
include ../../../../build/modmake.rules
LOCAL_CFLAGS=`net-snmp-config --cflags`
LOCAL_LDFLAGS=-lnetsnmpmibs -lnetsnmpagent -lnetsnmp
LOCAL_OBJS=subagent.o