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)
|
||||
hardeningCFlags+=('-fPIE')
|
||||
hardeningLDFlags+=('-pie')
|
||||
if [[ ! "$*" =~ "-shared" ]]; then
|
||||
hardeningLDFlags+=('-pie')
|
||||
fi
|
||||
;;
|
||||
pic)
|
||||
hardeningCFlags+=('-fPIC')
|
||||
|
Loading…
Reference in New Issue
Block a user