summaryrefslogtreecommitdiff
blob: aabad382c7e728b4f1ca389796fd7c0880da6963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- Makefile.orig	2010-06-09 09:22:44.000000000 +0200
+++ Makefile	2010-06-09 09:26:05.000000000 +0200
@@ -7,7 +7,8 @@
 #LDFLAGS = -lefence
 LDFLAGS += -g
 else
-CFLAGS = -O2
+CFLAGS += -O2 -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fPIE
+LDFLAGS += -fPIE -pie -Wl,-z,relro,-z,now
 endif
 
 ifdef NO_ICONV