gcc: disable libsanitizer, libgomp on musl

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