summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorFlorian Franzmann2020-01-04 12:49:10 +0100
committerFlorian Franzmann2020-01-04 19:28:35 +0100
commit9474c5ddcfa5025bf4a05b2c6a78c2aa030d9eaf (patch)
tree6a38258ec67bf5383680d480142e1b19dddf13c4 /FUNCTIONS
parentd2401a972405add525f702ac8c0674331dcccf4b (diff)
FUNCTIONS: add disable_fortify_source
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS10
1 files changed, 10 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 4dbe602f46..e79d450706 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -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
#---