Undefine _FORTIFY_SOURCE before defining it, in case it's set by the distro.

Fixes Issue #7.
This commit is contained in:
Alex Halderman 2013-08-20 13:05:47 -04:00
parent 9200992976
commit 5e4143973d

View File

@ -22,7 +22,7 @@ GCCWARNINGS = -Wall -pedantic -fno-strict-aliasing -Wfloat-equal -Wundef \
-Waddress -Wmissing-noreturn -Wnormalized=id \
-Wstrict-overflow=1 -Wextra \
-Wstack-protector -Wformat -Wformat-security -Wpointer-sign -Wno-format-nonliteral -Wno-format-y2k
GCCHARDENING=-D_FORTIFY_SOURCE=2 -fstack-protector-all -fwrapv -fPIC --param ssp-buffer-size=1
GCCHARDENING=-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all -fwrapv -fPIC --param ssp-buffer-size=1
LDHARDENING=-z relro -z now
EXTRACFLAGS=-std=gnu99 -g -O2 $(EXTRA_CFLAGS) $(GCCHARDENING) $(GCCWARNINGS) -Werror