summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-07-31 16:15:46 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-07-31 16:15:46 +0200
commit22d7580b77beef5ca4311c6da9d7562a6ce73ee0 (patch)
treeec827719f7e3e49547e9638e1a184d0b567848d0
parent1504d096f24876c2bc5af22a3ca4d111e705547e (diff)
downloadfail-22d7580b77beef5ca4311c6da9d7562a6ce73ee0.tar.gz
fail-22d7580b77beef5ca4311c6da9d7562a6ce73ee0.tar.xz
fail-22d7580b77beef5ca4311c6da9d7562a6ce73ee0.zip
Makefile: use PIE, use -O1 to not optimize the *0 assignments away.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7dca2f3..48113a5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 ALL=fail
 
-CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings
+CFLAGS=-g -O1 -Wall -Wno-switch -Wextra -Wwrite-strings -fPIE
+LDFLAGS=-pie
 
 DESTDIR=
 PREFIX=/usr/local