mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 20:11:43 +03:00
cc-wrapper: Disable pie for linking static libs
This commit is contained in:
parent
63f60b6a13
commit
ab1092875a
@ -16,7 +16,7 @@ if [[ ! $hardeningDisable == "all" ]]; then
|
||||
;;
|
||||
pie)
|
||||
hardeningCFlags+=('-fPIE')
|
||||
if [[ ! "$*" =~ "-shared" ]]; then
|
||||
if [[ ! ("$*" =~ " -shared " || "$*" =~ " -static ") ]]; then
|
||||
hardeningLDFlags+=('-pie')
|
||||
fi
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user