File: make_hardening_work

package info (click to toggle)
simpleproxy 3.5-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 276 kB
  • ctags: 88
  • sloc: ansic: 1,417; sh: 214; makefile: 35
file content (22 lines) | stat: -rw-r--r-- 893 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
Author: Andrew Pollock <apollock@debian.org>
Description: Allow hardening flags to be properly honoured
 Without this patch, the rorelro hardening doesn't happen
Forwarded: https://sourceforge.net/p/simpleproxy/patches/5/

Index: simpleproxy-3.4/Makefile.in
===================================================================
--- simpleproxy-3.4.orig/Makefile.in	2014-05-26 10:57:07.653933230 +1000
+++ simpleproxy-3.4/Makefile.in	2014-05-26 11:01:09.892584396 +1000
@@ -36,10 +36,10 @@
 	$(INSTALL)   simpleproxy.man $(mandir)/man1/simpleproxy.1
 
 simpleproxy: simpleproxy.o cfg.o Makefile
-	$(CC) $(CFLAGS) -o simpleproxy simpleproxy.o cfg.o $(LIBS)
+	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o simpleproxy simpleproxy.o cfg.o $(LIBS)
 
 .c.o:
-	$(CC) $(CFLAGS) -c $<
+	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c $<
 
 cfg.o: cfg.c cfg.h Makefile
 simpleproxy.o: simpleproxy.c cfg.h Makefile