summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorFlorian Franzmann2019-12-12 21:56:12 +0100
committerFlorian Franzmann2019-12-22 01:15:09 +0100
commita73c14b675f38c934009e9cfe2d82f7b7ac46e84 (patch)
tree8f68b13be45fa9df13de5066e5d583f32b0fe37c /FUNCTIONS
parent5ee787743c82e03b30041700afa9bd7cc47e1b14 (diff)
FUNCTIONS: add function for disabling -fexceptions
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS9
1 files changed, 9 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 93b296dfb3..159249de2b 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -537,6 +537,15 @@ disable_stack_clash_protection() {
CXXFLAGS=${CXXFLAGS//-fstack-clash-protection}
}
+#---
+## disable_fexceptions
+## A function for disabling -fexceptions
+#---
+disable_fexceptions() {
+ CFLAGS=${CFLAGS//-fexceptions} &&
+ CXXFLAGS=${CXXFLAGS//-fexceptions}
+}
+
# FUnction to tag config files that cannot be tagged by the normal install_config_file method
# do NOT call check_if_modified or mark_file_modified ANYWHERE ELSE!!!
# # THIS function will go away when it migrates down from devel sorcery