File: cppflags.patch

package info (click to toggle)
asciijump 1.0.2~beta-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 940 kB
  • sloc: ansic: 4,672; sh: 2,582; makefile: 191
file content (23 lines) | stat: -rw-r--r-- 491 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
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: support building with CPPFLAGS
 needed to set hardening flags exported by Debian

--- a/Makefile.in
+++ b/Makefile.in
@@ -18,6 +18,7 @@
 
 CC		= @CC@
 CFLAGS		= @CFLAGS@
+CPPFLAGS		= @CPPFLAGS@
 LDFLAGS		= @LDFLAGS@
 TAR		= tar
 GZIP		= gzip
@@ -94,7 +95,7 @@
 bin/%.o: %.c
 	 @echo 
 	 @echo -n "$< .. "
-	 ${GCCPREFIX}${CC} ${ALL_CFLAGS} -c $< -o $@
+	 ${GCCPREFIX}${CC} ${CPPFLAGS} ${ALL_CFLAGS} -c $< -o $@
 	 @echo -n "ok";