disable stackprotector on target platform musl32

This commit is contained in:
Walter Franzini
2021-02-12 11:06:29 +01:00
committed by Symphorien Gibol
parent 35e12d8343
commit 87e35291a5
+3 -1
View File
@@ -451,7 +451,9 @@ stdenv.mkDerivation {
hardening_unsupported_flags+=" stackprotector pic"
'' + optionalString (targetPlatform.libc == "newlib") ''
hardening_unsupported_flags+=" stackprotector fortify pie pic"
'' + optionalString targetPlatform.isNetBSD ''
'' + optionalString (targetPlatform.libc == "musl" && targetPlatform.isi686) ''
hardening_unsupported_flags+=" stackprotector"
'' + optionalString targetPlatform.isNetBSD ''
hardening_unsupported_flags+=" stackprotector fortify"
'' + optionalString cc.langAda or false ''
hardening_unsupported_flags+=" format stackprotector strictoverflow"