diff options
author | hexcoder- <heiko@hexco.de> | 2020-08-29 21:45:23 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-08-29 21:45:23 +0200 |
commit | ca0105ddf6bd3c28a7ea4f9a963f820b1eb55ac6 (patch) | |
tree | ae8aebd38797516c595d44966203240c108d8182 /GNUmakefile | |
parent | 41bb359428e4559821c95831f25c772d1a8403d9 (diff) | |
download | AFLplusplus-ca0105ddf6bd3c28a7ea4f9a963f820b1eb55ac6.tar.gz |
fix make DEBUG=1 (error seen with gcc 10.2.0)
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index cae172dd..7cdf0d2e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -62,7 +62,10 @@ ifneq "$(shell uname)" "Darwin" endif endif # OS X does not like _FORTIFY_SOURCE=2 - CFLAGS_OPT += -D_FORTIFY_SOURCE=2 + # _FORTIFY_SOURCE=2 does not like -O0 + ifndef DEBUG + CFLAGS_OPT += -D_FORTIFY_SOURCE=2 + endif endif ifeq "$(shell uname)" "SunOS" @@ -204,7 +207,10 @@ else endif ifneq "$(filter Linux GNU%,$(shell uname))" "" + # _FORTIFY_SOURCE=2 does not like -O0 + ifndef DEBUG override CFLAGS += -D_FORTIFY_SOURCE=2 + endif LDFLAGS += -ldl -lrt endif |