cc-wrapper: Disable pie for linking static libs
This commit is contained in:
parent
63f60b6a13
commit
ab1092875a
@ -16,7 +16,7 @@ if [[ ! $hardeningDisable == "all" ]]; then
|
|||||||
;;
|
;;
|
||||||
pie)
|
pie)
|
||||||
hardeningCFlags+=('-fPIE')
|
hardeningCFlags+=('-fPIE')
|
||||||
if [[ ! "$*" =~ "-shared" ]]; then
|
if [[ ! ("$*" =~ " -shared " || "$*" =~ " -static ") ]]; then
|
||||||
hardeningLDFlags+=('-pie')
|
hardeningLDFlags+=('-pie')
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user