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) pie)
hardeningCFlags+=('-fPIE') hardeningCFlags+=('-fPIE')
if [[ ! "$*" =~ "-shared" ]]; then
hardeningLDFlags+=('-pie') hardeningLDFlags+=('-pie')
fi
;; ;;
pic) pic)
hardeningCFlags+=('-fPIC') hardeningCFlags+=('-fPIC')