Skip to content
Snippets Groups Projects
Commit 797f588a authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Allow FORTIFY=1 to work on RELEASE builds too.

At some point, we should consider making it default.
parent 0a23f8e8
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -133,6 +133,9 @@ ifndef DEBUG
endif
endif
ifdef FORTIFY
CFLAGS += -D_FORTIFY_SOURCE=3
endif
ifdef DEBUG
ifdef PROFILE
CFLAGS += -pg
......@@ -147,7 +150,7 @@ ifdef DEBUG
LDFLAGS += -fprofile-arcs -ftest-coverage
endif
ifdef FORTIFY
CFLAGS += -D_FORTIFY_SOURCE=3 -O1
CFLAGS += -O1
endif
ifdef SANITIZE
CFLAGS += -fsanitize=undefined,address -fno-omit-frame-pointer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment