···169 # To keep ABI compatibility with upstream mingw-w64
170 "--enable-fully-dynamic-string"
171 ] else
172- optionals (targetPlatform.libc == "uclibc") [
173 # In uclibc cases, libgomp needs an additional '-ldl'
174 # and as I don't know how to pass it, I disable libgomp.
175 "--disable-libgomp"
···169 # To keep ABI compatibility with upstream mingw-w64
170 "--enable-fully-dynamic-string"
171 ] else
172+ optionals (targetPlatform.libc == "uclibc" || targetPlatform.libc == "musl") [
173 # In uclibc cases, libgomp needs an additional '-ldl'
174 # and as I don't know how to pass it, I disable libgomp.
175 "--disable-libgomp"
+1-1
pkgs/development/compilers/gcc/4.9/default.nix
···160 # To keep ABI compatibility with upstream mingw-w64
161 "--enable-fully-dynamic-string"
162 ] else
163- optionals (targetPlatform.libc == "uclibc") [
164 # libsanitizer requires netrom/netrom.h which is not
165 # available in uclibc.
166 "--disable-libsanitizer"
···160 # To keep ABI compatibility with upstream mingw-w64
161 "--enable-fully-dynamic-string"
162 ] else
163+ optionals (targetPlatform.libc == "uclibc" || targetPlatform.libc == "musl") [
164 # libsanitizer requires netrom/netrom.h which is not
165 # available in uclibc.
166 "--disable-libsanitizer"
+1-1
pkgs/development/compilers/gcc/5/default.nix
···160 # To keep ABI compatibility with upstream mingw-w64
161 "--enable-fully-dynamic-string"
162 ] else
163- optionals (targetPlatform.libc == "uclibc") [
164 # libsanitizer requires netrom/netrom.h which is not
165 # available in uclibc.
166 "--disable-libsanitizer"
···160 # To keep ABI compatibility with upstream mingw-w64
161 "--enable-fully-dynamic-string"
162 ] else
163+ optionals (targetPlatform.libc == "uclibc" || targetPlatform.libc == "musl") [
164 # libsanitizer requires netrom/netrom.h which is not
165 # available in uclibc.
166 "--disable-libsanitizer"
+2-1
pkgs/development/compilers/gcc/6/default.nix
···158 # To keep ABI compatibility with upstream mingw-w64
159 "--enable-fully-dynamic-string"
160 ] else
161- optionals (targetPlatform.libc == "uclibc") [
162 # libsanitizer requires netrom/netrom.h which is not
163 # available in uclibc.
164 "--disable-libsanitizer"
···399 # On Illumos/Solaris GNU as is preferred
400 "--with-gnu-as" "--without-gnu-ld"
401 ]
0402 ;
403404 targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
···158 # To keep ABI compatibility with upstream mingw-w64
159 "--enable-fully-dynamic-string"
160 ] else
161+ optionals (targetPlatform.libc == "uclibc" || targetPlatform.libc == "musl") [
162 # libsanitizer requires netrom/netrom.h which is not
163 # available in uclibc.
164 "--disable-libsanitizer"
···399 # On Illumos/Solaris GNU as is preferred
400 "--with-gnu-as" "--without-gnu-ld"
401 ]
402+ ++ optional (targetPlatform == hostPlatform && targetPlatform.libc == "musl") "--disable-libsanitizer"
403 ;
404405 targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null;
+1-1
pkgs/development/compilers/gcc/7/default.nix
···156 # To keep ABI compatibility with upstream mingw-w64
157 "--enable-fully-dynamic-string"
158 ] else
159- optionals (targetPlatform.libc == "uclibc") [
160 # libsanitizer requires netrom/netrom.h which is not
161 # available in uclibc.
162 "--disable-libsanitizer"
···156 # To keep ABI compatibility with upstream mingw-w64
157 "--enable-fully-dynamic-string"
158 ] else
159+ optionals (targetPlatform.libc == "uclibc" || targetPlatform.libc == "musl") [
160 # libsanitizer requires netrom/netrom.h which is not
161 # available in uclibc.
162 "--disable-libsanitizer"