cc-wrapper: Disable pie for linking static libs

This commit is contained in:
Franz Pletz 2016-03-06 18:03:57 +01:00
parent 63f60b6a13
commit ab1092875a

View File

@ -16,7 +16,7 @@ if [[ ! $hardeningDisable == "all" ]]; then
;;
pie)
hardeningCFlags+=('-fPIE')
if [[ ! "$*" =~ "-shared" ]]; then
if [[ ! ("$*" =~ " -shared " || "$*" =~ " -static ") ]]; then
hardeningLDFlags+=('-pie')
fi
;;