diff options
author | Florian Franzmann | 2020-01-26 12:49:50 +0100 |
---|---|---|
committer | Florian Franzmann | 2020-01-29 21:03:56 +0100 |
commit | f20edba8e5f9797ef83477799b845ed4c912a2ad (patch) | |
tree | a4a77a569bacb3a9cc09232018c3912d5fbf29fd /FUNCTIONS | |
parent | 1bac0ff8800174d6943f09af341fcd4067b072b6 (diff) |
FUNCTIONS: filter -fno-plt in disable_pic
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 } |