summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorFlorian Franzmann2020-01-12 18:07:51 +0100
committerFlorian Franzmann2020-01-12 19:39:26 +0100
commit487c141b67206ed96b7e712570b52d99e3ce5617 (patch)
tree0874940779d182876b911cf8ea68b6c8ed9f11e2 /FUNCTIONS
parent6116755058fe70646e6882d4c78c902303112928 (diff)
FUNCTIONS: add disable_stack_protector
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS9
1 files changed, 9 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 206855896a..94fb8dab24 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -538,6 +538,15 @@ disable_stack_clash_protection() {
}
#---
+## disable_stack_protector
+## A function for disabling -fstack-protector-strong
+#---
+disable_stack_protector() {
+ CFLAGS=${CFLAGS//-fstack-protector-strong} &&
+ CXXFLAGS=${CXXFLAGS//-fstack-protector-strong}
+}
+
+#---
## disable_fortify_source
## A function for disabling -D_FORTIFY_SOURCE=2
#---