From daa4b42cb6e7479bd725dd286a03007317c81039 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 19 Jan 2015 23:14:29 +0100 Subject: 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. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2