1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
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
|