cc-wrapper: Disable pie when linking shared libraries

This commit is contained in:
Franz Pletz 2016-03-06 15:27:41 +01:00
parent 2013614e1d
commit 63f60b6a13

View File

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