mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user