undefine _FORTIFY_SOURCE before defining it.

Fixes building with compilers/distributions that set it by default.

From Bryan Baldwin via patches@
This commit is contained in:
Joris Vink 2019-04-25 20:09:11 +02:00
parent 994f428a8d
commit 2c983e338c
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ ifeq ("$(OSNAME)", "darwin")
LDFLAGS+=-L/opt/local/lib -L/usr/local/opt/openssl/lib
S_SRC+=src/bsd.c
else ifeq ("$(OSNAME)", "linux")
CFLAGS+=-D_GNU_SOURCE=1 -D_FORTIFY_SOURCE=2
CFLAGS+=-D_GNU_SOURCE=1 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
LDFLAGS+=-ldl
S_SRC+=src/linux.c
else