aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-22 11:03:19 +0200
committerGitHub <noreply@github.com>2020-09-22 11:03:19 +0200
commit38152410fbff407a9f5d50f0496ea149311238be (patch)
tree7a8e0b4fdbbdad52e787c81f1c06607ec18c8f1c
parentecc8672aa007af045d77434b495ca09541e9fee3 (diff)
parent97b5154750d911a05992b97d7404d813d924de73 (diff)
Merge pull request #4048 from tweag/dont-fortify-on-dev
Disable `FORTIFY_SOURCE` when compiling without optims
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f472ca7e5..c50d2c40f 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ OPTIMIZE = 1
ifeq ($(OPTIMIZE), 1)
GLOBAL_CXXFLAGS += -O3
else
- GLOBAL_CXXFLAGS += -O0
+ GLOBAL_CXXFLAGS += -O0 -U_FORTIFY_SOURCE
endif
include mk/lib.mk