From 5e4143973dc71207f087005ee0891b2c86499eae Mon Sep 17 00:00:00 2001 From: Alex Halderman Date: Tue, 20 Aug 2013 13:05:47 -0400 Subject: [PATCH] Undefine _FORTIFY_SOURCE before defining it, in case it's set by the distro. Fixes Issue #7. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 9baeba2..97dd119 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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