cc-wrapper: Disable pie for linking static libs

This commit is contained in:
Franz Pletz
2016-03-07 01:30:39 +01:00
parent 63f60b6a13
commit ab1092875a
+1 -1
View File
@@ -16,7 +16,7 @@ if [[ ! $hardeningDisable == "all" ]]; then
;;
pie)
hardeningCFlags+=('-fPIE')
if [[ ! "$*" =~ "-shared" ]]; then
if [[ ! ("$*" =~ " -shared " || "$*" =~ " -static ") ]]; then
hardeningLDFlags+=('-pie')
fi
;;