mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
disable stackprotector on target platform musl32
This commit is contained in:
parent
35e12d8343
commit
87e35291a5
|
@ -451,6 +451,8 @@ stdenv.mkDerivation {
|
||||||
hardening_unsupported_flags+=" stackprotector pic"
|
hardening_unsupported_flags+=" stackprotector pic"
|
||||||
'' + optionalString (targetPlatform.libc == "newlib") ''
|
'' + optionalString (targetPlatform.libc == "newlib") ''
|
||||||
hardening_unsupported_flags+=" stackprotector fortify pie pic"
|
hardening_unsupported_flags+=" stackprotector fortify pie pic"
|
||||||
|
'' + optionalString (targetPlatform.libc == "musl" && targetPlatform.isi686) ''
|
||||||
|
hardening_unsupported_flags+=" stackprotector"
|
||||||
'' + optionalString targetPlatform.isNetBSD ''
|
'' + optionalString targetPlatform.isNetBSD ''
|
||||||
hardening_unsupported_flags+=" stackprotector fortify"
|
hardening_unsupported_flags+=" stackprotector fortify"
|
||||||
'' + optionalString cc.langAda or false ''
|
'' + optionalString cc.langAda or false ''
|
||||||
|
|
Loading…
Reference in a new issue