From ccc96a4c44467af2b74557ca8e70138bc3a922ff Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Sun, 22 Aug 2021 19:51:15 -0700 Subject: [PATCH] gcc: enable libgomp for musl targets libgomp has been disabled on musl since musl support was first added to nixpkgs (15d401dcfa24ca91f26f1bfb69c4a5eaf0f46aeb), but seems to work fine. Tested down to gcc 6 (gcc 4.8 already doesn't build for musl) --- pkgs/development/compilers/gcc/common/configure-flags.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/gcc/common/configure-flags.nix b/pkgs/development/compilers/gcc/common/configure-flags.nix index 4686a387712f..000174a38bb8 100644 --- a/pkgs/development/compilers/gcc/common/configure-flags.nix +++ b/pkgs/development/compilers/gcc/common/configure-flags.nix @@ -93,6 +93,7 @@ let # libsanitizer requires netrom/netrom.h which is not # available in uclibc. "--disable-libsanitizer" + ] ++ lib.optionals (targetPlatform.libc == "uclibc") [ # In uclibc cases, libgomp needs an additional '-ldl' # and as I don't know how to pass it, I disable libgomp. "--disable-libgomp"