From 9af707ed2066a246fbbc32dbef6b53fcca26b150 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Tue, 13 May 2014 17:36:15 +0000 Subject: [PATCH] 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. --- src/mod/event_handlers/mod_snmp/Makefile | 1 - 1 file changed, 1 deletion(-) 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 -- 2.47.2