提交 9af707ed authored 作者: Travis Cross's avatar Travis Cross

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.
上级 04a55bbd
include ../../../../build/modmake.rules include ../../../../build/modmake.rules
LOCAL_CFLAGS=`net-snmp-config --cflags`
LOCAL_LDFLAGS=-lnetsnmpmibs -lnetsnmpagent -lnetsnmp LOCAL_LDFLAGS=-lnetsnmpmibs -lnetsnmpagent -lnetsnmp
LOCAL_OBJS=subagent.o LOCAL_OBJS=subagent.o
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论