cc-wrapper: clang doesn't support -fPIC on Windows
This commit is contained in:
parent
504d38ae7b
commit
4b503b2a58
|
@ -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") ''
|
||||
|
|
Loading…
Reference in a new issue