identify musl32 using x86_32 instead of i686

This commit is contained in:
Walter Franzini
2021-02-12 21:11:16 +01:00
committed by Symphorien Gibol
parent 42e689e5bd
commit eabb56ac6c
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -451,9 +451,9 @@ stdenv.mkDerivation {
hardening_unsupported_flags+=" stackprotector pic"
'' + optionalString (targetPlatform.libc == "newlib") ''
hardening_unsupported_flags+=" stackprotector fortify pie pic"
'' + optionalString (targetPlatform.libc == "musl" && targetPlatform.isi686) ''
'' + optionalString (targetPlatform.libc == "musl" && targetPlatform.isx86_32) ''
hardening_unsupported_flags+=" stackprotector"
'' + optionalString targetPlatform.isNetBSD ''
'' + optionalString targetPlatform.isNetBSD ''
hardening_unsupported_flags+=" stackprotector fortify"
'' + optionalString cc.langAda or false ''
hardening_unsupported_flags+=" format stackprotector strictoverflow"