Skip to content
Snippets Groups Projects
Commit db5b00b5 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 bb9b789c
No related branches found
No related tags found
No related merge requests found
Pipeline #5708 passed
...@@ -133,6 +133,9 @@ ifndef DEBUG ...@@ -133,6 +133,9 @@ ifndef DEBUG
endif endif
endif endif
ifdef FORTIFY
CFLAGS += -D_FORTIFY_SOURCE=3
endif
ifdef DEBUG ifdef DEBUG
ifdef PROFILE ifdef PROFILE
CFLAGS += -pg CFLAGS += -pg
...@@ -147,7 +150,7 @@ ifdef DEBUG ...@@ -147,7 +150,7 @@ ifdef DEBUG
LDFLAGS += -fprofile-arcs -ftest-coverage LDFLAGS += -fprofile-arcs -ftest-coverage
endif endif
ifdef FORTIFY ifdef FORTIFY
CFLAGS += -D_FORTIFY_SOURCE=3 -O1 CFLAGS += -O1
endif endif
ifdef SANITIZE ifdef SANITIZE
CFLAGS += -fsanitize=undefined,address -fno-omit-frame-pointer CFLAGS += -fsanitize=undefined,address -fno-omit-frame-pointer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment