File: translate-with-build-flags.diff

package info (click to toggle)
dbusada 0.6.3-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 748 kB
  • sloc: ada: 5,892; ansic: 98; makefile: 81; sh: 47
file content (29 lines) | stat: -rw-r--r-- 922 bytes parent folder | download | duplicates (2)
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