cc-wrapper: clang doesn't support -fPIC on Windows

This commit is contained in:
Shea Levy 2022-05-03 06:15:15 -04:00
parent 504d38ae7b
commit 4b503b2a58
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -476,6 +476,8 @@ stdenv.mkDerivation {
hardening_unsupported_flags+=" pic"
'' + optionalString targetPlatform.isMinGW ''
hardening_unsupported_flags+=" stackprotector fortify"
'' + optionalString (targetPlatform.isWindows && isClang) ''
hardening_unsupported_flags+=" pic"
'' + optionalString targetPlatform.isAvr ''
hardening_unsupported_flags+=" stackprotector pic"
'' + optionalString (targetPlatform.libc == "newlib") ''