File: Hardening-Makefile

package info (click to toggle)
progress 0.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 220 kB
  • sloc: ansic: 1,113; makefile: 109
file content (19 lines) | stat: -rw-r--r-- 635 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Purpose: adding $(CPPFLAGS) as argument to CC, for hardening build.
Author: Zhou Mo
Forward: keep it downstream -- Debian specific.
Index: progress/Makefile
===================================================================
--- progress.orig/Makefile	2018-02-14 06:01:16.687928191 +0000
+++ progress/Makefile	2018-02-14 06:01:16.683928152 +0000
@@ -21,9 +21,9 @@
 MANDIR = $(PREFIX)/share/man/man1
 
 $(OBJ) : progress.o sizes.o hlist.o
-	$(CC) -Wall $^ -o $@ $(LDFLAGS)
+	$(CC) $(CPPFLAGS) -Wall $^ -o $@ $(LDFLAGS)
 %.o : %.c
-	$(CC) $(CFLAGS) -c $^
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c $^
 clean :
 	rm -f *.o $(OBJ)
 install : $(OBJ)