Package: ecopcr / 1.0.1+dfsg-5

hardening.patch Patch series | download
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
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 24 Jun 2015 19:24:02 +0200
Description: Propagate hardening options
 No idea why the lintian warning remains - the options are properly set IMHO

--- a/src/global.mk
+++ b/src/global.mk
@@ -2,16 +2,17 @@ LIBPATH= -Llibapat -LlibecoPCR -Llibther
 MAKEDEPEND = gcc -M $(CPPFLAGS) -o $*.d $<
 
 CC=gcc
-CFLAGS= -O3 -w
+CFLAGS+= -O3 -w
+
 
 default: all
 
 %.o: %.c
-	$(CC) $(CFLAGS) -c -o $@ $<
+	$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
 
 %.P : %.c
 	$(MAKEDEPEND)
 	@sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' < $*.d > $@; \
 	rm -f $*.d; [ -s $@ ] || rm -f $@
 
-include $(SRCS:.c=.P)
\ No newline at end of file
+include $(SRCS:.c=.P)