Merge pull request #4048 from tweag/dont-fortify-on-dev

Disable `FORTIFY_SOURCE` when compiling without optims
This commit is contained in:
Eelco Dolstra
2020-09-22 11:03:19 +02:00
committed by GitHub
+1 -1
View File
@@ -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