Browse Source

Add CPPFLAGS to compiler options (reported by blhc)

Christoph Biedl 7 months ago
parent
commit
3c12622599
2 changed files with 12 additions and 0 deletions
  1. 1 0
      debian/patches/series
  2. 11 0
      debian/patches/upstream.use-cppflags.patch

+ 1 - 0
debian/patches/series

@@ -1,6 +1,7 @@
 # cherry-picked commits. Keep in upstream's chronological order
 
 # patches that should go upstream
+upstream.use-cppflags.patch
 upstream.fix-crash-on-huge-prefix-lists.patch
 upstream.fix-unaligned-memory-access.patch
 

+ 11 - 0
debian/patches/upstream.use-cppflags.patch

@@ -0,0 +1,11 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -1,7 +1,7 @@
+ 
+ CC	= @CC@ -fPIC
+ CFLAGS	= @CFLAGS@
+-COMPILE  = $(CC) $(CFLAGS) $(INCLUDES)
++COMPILE  = $(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES)
+ 
+ LD	= @CC@
+ LDFLAGS	= @LDFLAGS@