|
|
|
@ -158,7 +158,7 @@ let version = "6.4.0"; |
|
|
|
|
# To keep ABI compatibility with upstream mingw-w64 |
|
|
|
|
"--enable-fully-dynamic-string" |
|
|
|
|
] else |
|
|
|
|
optionals (targetPlatform.libc == "uclibc") [ |
|
|
|
|
optionals (targetPlatform.libc == "uclibc" || targetPlatform.libc == "musl") [ |
|
|
|
|
# libsanitizer requires netrom/netrom.h which is not |
|
|
|
|
# available in uclibc. |
|
|
|
|
"--disable-libsanitizer" |
|
|
|
@ -399,6 +399,7 @@ stdenv.mkDerivation ({ |
|
|
|
|
# On Illumos/Solaris GNU as is preferred |
|
|
|
|
"--with-gnu-as" "--without-gnu-ld" |
|
|
|
|
] |
|
|
|
|
++ optional (targetPlatform == hostPlatform && targetPlatform.libc == "musl") "--disable-libsanitizer" |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null; |
|
|
|
|