forked from mirrors/nixpkgs
cc-wrapper: disable stackprotector for MicroBlaze
This option doesn't seem to be supported in the cross-compiler
This commit is contained in:
parent
4db467f7e9
commit
bec06f5bba
|
@ -496,6 +496,8 @@ stdenv.mkDerivation {
|
|||
hardening_unsupported_flags+=" format"
|
||||
'' + optionalString targetPlatform.isWasm ''
|
||||
hardening_unsupported_flags+=" stackprotector fortify pie pic"
|
||||
'' + optionalString targetPlatform.isMicroBlaze ''
|
||||
hardening_unsupported_flags+=" stackprotector"
|
||||
''
|
||||
|
||||
+ optionalString (libc != null && targetPlatform.isAvr) ''
|
||||
|
|
Loading…
Reference in a new issue