aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-11-28 19:09:13 +0100
committerhexcoder- <heiko@hexco.de>2020-11-28 19:09:13 +0100
commite83426a79be11378cdef89a2a96a434cf8fc305e (patch)
tree0f12d55e03550e0f706b76ff62ef16a71d565de9 /GNUmakefile
parentfdac887660d776c725c148bf144548f9d1b7f1e6 (diff)
downloadAFLplusplus-e83426a79be11378cdef89a2a96a434cf8fc305e.tar.gz
fix make DEBUG=1
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index f17a6253..521ab683 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -85,7 +85,9 @@ ifneq "$(shell uname)" "Darwin"
endif
endif
# OS X does not like _FORTIFY_SOURCE=2
- CFLAGS_OPT += -D_FORTIFY_SOURCE=2
+ ifndef DEBUG
+ CFLAGS_OPT += -D_FORTIFY_SOURCE=2
+ endif
endif
ifeq "$(shell uname)" "SunOS"
@@ -232,7 +234,9 @@ else
endif
ifneq "$(filter Linux GNU%,$(shell uname))" ""
+ ifndef DEBUG
override CFLAGS += -D_FORTIFY_SOURCE=2
+ endif
LDFLAGS += -ldl -lrt -lm
endif