Description: Makefile add correct flags The sedscript creation was missing CPPGLAGS Author: Craig Small Bug: https://github.com/net-snmp/net-snmp/issues/29 Reviewed-by: Craig Small Last-Update: 2023-12-23 --- a/Makefile.in +++ b/Makefile.in @@ -115,7 +115,7 @@ # local build rules # sedscript: $(srcdir)/sedscript.in include/net-snmp/net-snmp-config.h $(srcdir)/agent/mibgroup/mibdefs.h - $(CPP) -I$(srcdir) -Iinclude $(srcdir)/sedscript.in | $(EGREP) '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript + $(CPP) $(CPPFLAGS) -I$(srcdir) -Iinclude $(srcdir)/sedscript.in | $(EGREP) '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' > sedscript echo 's/VERSIONINFO/$(VERSION)/g' >> sedscript echo 's#DATADIR#$(datadir)#g' >> sedscript echo 's#LIBDIR#$(libdir)#g' >> sedscript