cc-wrapper: Disable pie when linking shared libraries
This commit is contained in:
parent
2013614e1d
commit
63f60b6a13
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user