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
