Description: apply build flags during C translation and tests
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: not-needed

--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@
 	@mkdir -p $@
 
 $(TESTBIN): $(TESTDIR)/c/dbus-rebound.c | $(OBJDIR)/tests
-	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(PKGCONF) $(LDLIBS)
+	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(PKGCONF) $(LDLIBS)
 
 clean:
 	@rm -rf $(OBJDIR)
--- a/scripts/generate-thin-binding.sh
+++ b/scripts/generate-thin-binding.sh
@@ -26,7 +26,10 @@
 fi
 cd $thindir
 
-$CXX --dump-ada-spec $dbus_h `pkg-config --cflags $dbus_lib`
+# This command line actually compiles nothing, so CPPFLAGS CXXFLAGS
+# probably have no other effect than silencing the Build Log Hardening
+# Checker in Debian.
+$CXX --dump-ada-spec $dbus_h `pkg-config --cflags $dbus_lib` $CPPFLAGS $CXXFLAGS
 
 # Remove arch, path or version dependent prefixes.
 for i in *dbus_dbus_*; do
