mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-25 10:54:45 +00:00
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.
9 lines
339 B
Makefile
9 lines
339 B
Makefile
include $(top_srcdir)/build/modmake.rulesam
|
|
MODNAME=mod_snmp
|
|
|
|
mod_LTLIBRARIES = mod_snmp.la
|
|
mod_snmp_la_SOURCES = mod_snmp.c subagent.c
|
|
mod_snmp_la_CFLAGS = $(AM_CFLAGS)
|
|
mod_snmp_la_LIBADD = $(switch_builddir)/libfreeswitch.la -lnetsnmpmibs -lnetsnmpagent -lnetsnmp
|
|
mod_snmp_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|