diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 23:14:29 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 23:35:58 +0100 |
commit | daa4b42cb6e7479bd725dd286a03007317c81039 (patch) | |
tree | 31d7b0db408a2be566c181d8cc8a288cba92faee | |
parent | 667224817c0a5612d471c8cc579e159050ad61a1 (diff) | |
download | sds-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-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |