Package: mt-st / 1.1-6

40-makefile-flags.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Iustin Pop <iustin@debian.org>
Description: Patch Makefile in order to pass preprocessor flags as well
 This allows better hardening of the binary.
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,10 @@
 all:	mt stinit
 
 mt:	mt.c
-	$(CC) $(CFLAGS) $(LDFLAGS) -o mt mt.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o mt mt.c
 
 stinit:	stinit.c
-	$(CC) $(CFLAGS) $(LDFLAGS) -o stinit stinit.c
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o stinit stinit.c
 
 install: mt stinit
 	install -s mt $(MTDIR)