diff options
author | Florian Franzmann | 2020-01-04 12:49:10 +0100 |
---|---|---|
committer | Florian Franzmann | 2020-01-04 19:28:35 +0100 |
commit | 9474c5ddcfa5025bf4a05b2c6a78c2aa030d9eaf (patch) | |
tree | 6a38258ec67bf5383680d480142e1b19dddf13c4 /FUNCTIONS | |
parent | d2401a972405add525f702ac8c0674331dcccf4b (diff) |
FUNCTIONS: add disable_fortify_source
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -538,6 +538,16 @@ disable_stack_clash_protection() { } #--- +## disable_fortify_source +## A function for disabling -D_FORTIFY_SOURCE=2 +#--- +disable_fortify_source() { + CFLAGS=${CFLAGS//-D_FORTIFY_SOURCE=2} && + CPPFLAGS=${CPPFLAGS//-D_FORTIFY_SOURCE=2} && + CXXFLAGS=${CXXFLAGS//-D_FORTIFY_SOURCE=2} +} + +#--- ## disable_fexceptions ## A function for disabling -fexceptions #--- |