Description: Fix missing build flags warnings reported by blhc
Author: Fabian Wolff <fabi.wolff@arcor.de>
Forwarded: yes
Last-Update: 2018-08-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/dwarfdump/Makefile.am
+++ b/dwarfdump/Makefile.am
@@ -41,7 +41,7 @@
 -I$(top_builddir)/libdwarf
 
 tag_attr_build$(BUILD_EXEEXT): $(top_srcdir)/dwarfdump/tag_attr.c $(top_builddir)/libdwarf/dwarf_names.c $(top_srcdir)/dwarfdump/common.c $(top_srcdir)/dwarfdump/dwarf_tsearchbal.c $(top_srcdir)/dwarfdump/dwgetopt.c $(top_srcdir)/dwarfdump/esb.c $(top_srcdir)/dwarfdump/makename.c $(top_srcdir)/dwarfdump/naming.c $(top_srcdir)/dwarfdump/sanitized.c $(top_srcdir)/dwarfdump/tag_common.c
-	$(CC_FOR_BUILD) $(tag_attr_build_CPPFLAGS) $(tag_attr_build_CFLAGS) $(CFLAGS_FOR_BUILD) $(top_srcdir)/dwarfdump/tag_attr.c $(top_builddir)/libdwarf/dwarf_names.c  $(top_srcdir)/dwarfdump/common.c $(top_srcdir)/dwarfdump/dwarf_tsearchbal.c $(top_srcdir)/dwarfdump/dwgetopt.c $(top_srcdir)/dwarfdump/esb.c $(top_srcdir)/dwarfdump/makename.c $(top_srcdir)/dwarfdump/naming.c $(top_srcdir)/dwarfdump/sanitized.c $(top_srcdir)/dwarfdump/tag_common.c -o $@
+	$(CC_FOR_BUILD) $(tag_attr_build_CPPFLAGS) $(tag_attr_build_CFLAGS) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(top_srcdir)/dwarfdump/tag_attr.c $(top_builddir)/libdwarf/dwarf_names.c  $(top_srcdir)/dwarfdump/common.c $(top_srcdir)/dwarfdump/dwarf_tsearchbal.c $(top_srcdir)/dwarfdump/dwgetopt.c $(top_srcdir)/dwarfdump/esb.c $(top_srcdir)/dwarfdump/makename.c $(top_srcdir)/dwarfdump/naming.c $(top_srcdir)/dwarfdump/sanitized.c $(top_srcdir)/dwarfdump/tag_common.c -o $@ $(LDFLAGS_FOR_BUILD)
 
 ### tag_tree_build
 
@@ -65,13 +65,13 @@
 
 tag_tree_build_CFLAGS = 
 
-tag_tree_build_CPPFLAGS = @CPPFLAGS@ -DTRIVIAL_NAMING \
+tag_tree_build_CPPFLAGS = -DTRIVIAL_NAMING \
 -I$(top_builddir) \
 -I$(top_srcdir)/libdwarf \
 -I$(top_builddir)/libdwarf
 
 tag_tree_build$(BUILD_EXEEXT): $(top_srcdir)/dwarfdump/tag_tree.c $(top_builddir)/libdwarf/dwarf_names.c $(top_srcdir)/dwarfdump/common.c $(top_srcdir)/dwarfdump/dwarf_tsearchbal.c $(top_srcdir)/dwarfdump/dwgetopt.c $(top_srcdir)/dwarfdump/esb.c $(top_srcdir)/dwarfdump/makename.c $(top_srcdir)/dwarfdump/naming.c $(top_srcdir)/dwarfdump/sanitized.c $(top_srcdir)/dwarfdump/tag_common.c
-	$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(tag_tree_build_CPPFLAGS) $(tag_tree_build_CFLAGS) $(top_srcdir)/dwarfdump/tag_tree.c $(top_builddir)/libdwarf/dwarf_names.c $(top_srcdir)/dwarfdump/common.c $(top_srcdir)/dwarfdump/dwarf_tsearchbal.c $(top_srcdir)/dwarfdump/dwgetopt.c $(top_srcdir)/dwarfdump/esb.c $(top_srcdir)/dwarfdump/makename.c $(top_srcdir)/dwarfdump/naming.c $(top_srcdir)/dwarfdump/sanitized.c $(top_srcdir)/dwarfdump/tag_common.c -o $@
+	$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(tag_tree_build_CPPFLAGS) $(tag_tree_build_CFLAGS) $(top_srcdir)/dwarfdump/tag_tree.c $(top_builddir)/libdwarf/dwarf_names.c $(top_srcdir)/dwarfdump/common.c $(top_srcdir)/dwarfdump/dwarf_tsearchbal.c $(top_srcdir)/dwarfdump/dwgetopt.c $(top_srcdir)/dwarfdump/esb.c $(top_srcdir)/dwarfdump/makename.c $(top_srcdir)/dwarfdump/naming.c $(top_srcdir)/dwarfdump/sanitized.c $(top_srcdir)/dwarfdump/tag_common.c -o $@ $(LDFLAGS_FOR_BUILD)
 
 
 BUILT_SOURCES = \
@@ -92,25 +92,25 @@
 tmp-tt-table.h: tag_tree.list tag_tree_build$(BUILD_EXEEXT)
 	$(AM_V_at)rm -f tmp-t1.c
 	$(AM_V_at)cp $(top_srcdir)/dwarfdump/tag_tree.list tmp-t1.c
-	$(AM_V_at)$(CC) $(CFLAGS) -I$(top_srcdir)/libdwarf -E tmp-t1.c > tmp-tag-tree-build1.tmp
+	$(AM_V_at)$(CC) $(CFLAGS) $(CPPFLAGS) -I$(top_srcdir)/libdwarf -E tmp-t1.c > tmp-tag-tree-build1.tmp
 	$(gn_verbose)./tag_tree_build$(BUILD_EXEEXT) -s -i tmp-tag-tree-build1.tmp -o tmp-tt-table.h
 
 tmp-ta-table.h: tag_attr.list tag_attr_build$(BUILD_EXEEXT)
 	$(AM_V_at)rm -f tmp-t2.c
 	$(AM_V_at)cp $(top_srcdir)/dwarfdump/tag_attr.list tmp-t2.c
-	$(AM_V_at)$(CC) $(CFLAGS) -I$(top_srcdir)/libdwarf  -E tmp-t2.c > tmp-tag-attr-build2.tmp
+	$(AM_V_at)$(CC) $(CFLAGS) $(CPPFLAGS) -I$(top_srcdir)/libdwarf  -E tmp-t2.c > tmp-tag-attr-build2.tmp
 	$(gn_verbose)./tag_attr_build$(BUILD_EXEEXT) -s -i tmp-tag-attr-build2.tmp -o tmp-ta-table.h
 
 tmp-ta-ext-table.h: tag_attr_ext.list tag_attr_build$(BUILD_EXEEXT)
 	$(AM_V_at)rm -f tmp-t3.c
 	$(AM_V_at)cp $(top_srcdir)/dwarfdump/tag_attr_ext.list tmp-t3.c
-	$(AM_V_at)$(CC) $(CFLAGS) -I$(top_srcdir)/libdwarf -E tmp-t3.c > tmp-tag-attr-build3.tmp
+	$(AM_V_at)$(CC) $(CFLAGS) $(CPPFLAGS) -I$(top_srcdir)/libdwarf -E tmp-t3.c > tmp-tag-attr-build3.tmp
 	$(gn_verbose)./tag_attr_build$(BUILD_EXEEXT) -e -i tmp-tag-attr-build3.tmp -o tmp-ta-ext-table.h
 
 tmp-tt-ext-table.h: tag_tree_ext.list tag_tree_build$(EXEEXT)
 	$(AM_V_at)rm -f tmp-t4.c
 	$(AM_V_at)cp $(top_srcdir)/dwarfdump/tag_tree_ext.list tmp-t4.c
-	$(AM_V_at)$(CC) $(CFLAGS) -I$(top_srcdir)/libdwarf  -E tmp-t4.c > tmp-tag-tree-build4.tmp
+	$(AM_V_at)$(CC) $(CFLAGS) $(CPPFLAGS) -I$(top_srcdir)/libdwarf  -E tmp-t4.c > tmp-tag-tree-build4.tmp
 	$(gn_verbose)./tag_tree_build$(BUILD_EXEEXT) -e -i tmp-tag-tree-build4.tmp -o tmp-tt-ext-table.h
 
 dwarfdump_SOURCES = \
--- a/libdwarf/Makefile.am
+++ b/libdwarf/Makefile.am
@@ -31,7 +31,7 @@
 	$(gn_verbose)./gennames$(BUILD_EXEEXT) @dwarf_namestable@ -i $(srcdir) -o .
 
 gennames$(BUILD_EXEEXT): $(top_srcdir)/libdwarf/gennames.c $(top_srcdir)/libdwarf/dwgetopt.c $(top_srcdir)/libdwarf/dwgetopt.h
-	$(cc_verbose)$(CC_FOR_BUILD) $(gennames_CFLAGS) $(top_srcdir)/libdwarf/gennames.c $(top_srcdir)/libdwarf/dwgetopt.c -o $@
+	$(cc_verbose)$(CC_FOR_BUILD) $(gennames_CFLAGS) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(top_srcdir)/libdwarf/gennames.c $(top_srcdir)/libdwarf/dwgetopt.c -o $@ $(LDFLAGS_FOR_BUILD)
 
 ### errmsg_check
 
@@ -46,7 +46,7 @@
 errmsg_check_list
 
 errmsg_check$(BUILD_EXEEXT): $(top_srcdir)/libdwarf/dwarf_test_errmsg_list.c $(top_srcdir)/libdwarf/dwarf_errmsg_list.h
-	$(CC_FOR_BUILD) $(errmsg_check_CFLAGS) $(top_srcdir)/libdwarf/dwarf_test_errmsg_list.c  -o $@
+	$(CC_FOR_BUILD) $(errmsg_check_CFLAGS) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(top_srcdir)/libdwarf/dwarf_test_errmsg_list.c  -o $@ $(LDFLAGS_FOR_BUILD)
 
 errmsg_check_list: errmsg_check$(BUILD_EXEEXT)
 	$(AM_V_at)grep DW_DLE libdwarf.h >errmsg_check_list
