cc-wrapper: disable stackprotector for MicroBlaze

This option doesn't seem to be supported in the cross-compiler
This commit is contained in:
Minijackson 2022-06-20 09:57:03 +02:00
parent 4db467f7e9
commit bec06f5bba
No known key found for this signature in database
GPG key ID: FEA888C9F5D64F62

View file

@ -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) ''