mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
cc-wrapper: Disable pie for linking static libs
This commit is contained in:
parent
63f60b6a13
commit
ab1092875a
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ if [[ ! $hardeningDisable == "all" ]]; then
|
|||
;;
|
||||
pie)
|
||||
hardeningCFlags+=('-fPIE')
|
||||
if [[ ! "$*" =~ "-shared" ]]; then
|
||||
if [[ ! ("$*" =~ " -shared " || "$*" =~ " -static ") ]]; then
|
||||
hardeningLDFlags+=('-pie')
|
||||
fi
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue