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