aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-19 23:14:29 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-19 23:35:58 +0100
commitdaa4b42cb6e7479bd725dd286a03007317c81039 (patch)
tree31d7b0db408a2be566c181d8cc8a288cba92faee
parent667224817c0a5612d471c8cc579e159050ad61a1 (diff)
downloadsds-daa4b42cb6e7479bd725dd286a03007317c81039.tar.xz
Makefile: Add CFLAGS for PIE and erranous warning
-Wdisabled-macro-expansion warns about macros that look like if they were self-recursive but aren't according to the C standard. When compiling with optimizations enabled clang throws this warning about tolower and toupper.
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ee5600e..9f988fa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
-CFLAGS += -Weverything -O2 -std=c99 -ggdb
+CFLAGS += -O2 -std=c99 -ggdb -fPIE -pie -fstack-protector-all -Wl,-z,relro -Wl,-z,now
+CFLAGS += -Weverything -Wno-disabled-macro-expansion
CC = clang
SOURCES = test/twbctf.c src/sds.c