forked from mirrors/kore
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:
parent
994f428a8d
commit
2c983e338c
2
Makefile
2
Makefile
|
@ -126,7 +126,7 @@ ifeq ("$(OSNAME)", "darwin")
|
||||||
LDFLAGS+=-L/opt/local/lib -L/usr/local/opt/openssl/lib
|
LDFLAGS+=-L/opt/local/lib -L/usr/local/opt/openssl/lib
|
||||||
S_SRC+=src/bsd.c
|
S_SRC+=src/bsd.c
|
||||||
else ifeq ("$(OSNAME)", "linux")
|
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
|
LDFLAGS+=-ldl
|
||||||
S_SRC+=src/linux.c
|
S_SRC+=src/linux.c
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue