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
commit 38152410fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ OPTIMIZE = 1
ifeq ($(OPTIMIZE), 1) ifeq ($(OPTIMIZE), 1)
GLOBAL_CXXFLAGS += -O3 GLOBAL_CXXFLAGS += -O3
else else
GLOBAL_CXXFLAGS += -O0 GLOBAL_CXXFLAGS += -O0 -U_FORTIFY_SOURCE
endif endif
include mk/lib.mk include mk/lib.mk