summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorFlorian Franzmann2020-01-26 12:49:50 +0100
committerFlorian Franzmann2020-01-29 21:03:56 +0100
commitf20edba8e5f9797ef83477799b845ed4c912a2ad (patch)
treea4a77a569bacb3a9cc09232018c3912d5fbf29fd /FUNCTIONS
parent1bac0ff8800174d6943f09af341fcd4067b072b6 (diff)
FUNCTIONS: filter -fno-plt in disable_pic
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS12
1 files changed, 11 insertions, 1 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index b6873f0ca0..03a9822424 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -510,6 +510,15 @@ function default_install_perl() {
#---
+## disable_no_plt
+## A function for disabling -fno-plt
+#---
+disable_no_plt() {
+ CFLAGS=${CFLAGS//-fno-plt} &&
+ CXXFLAGS=${CXXFLAGS//-fno-plt}
+}
+
+#---
## disable_pic
## A function to smartly disable -DPIC and -fPIC flags
## has one optional parameter: force which forces disable
@@ -524,7 +533,8 @@ disable_pic() {
CFLAGS=${CFLAGS//-fPIC} &&
CFLAGS=${CFLAGS//-DPIC} &&
CXXFLAGS=${CXXFLAGS//-fPIC} &&
- CXXFLAGS=${CXXFLAGS//-DPIC}
+ CXXFLAGS=${CXXFLAGS//-DPIC} &&
+ disable_no_plt
fi
}