pkgsLLVM.guile, pkgsLLVM.guile_3_0: avoid -lgcc_s on clang, not just darwin

Otherwise pkgsLLVM.guile / pkgsLLVM.guile_3_0 fails early on linux.
This commit is contained in:
Sergei Trofimovich
2022-02-15 08:00:16 +00:00
parent fce058c80e
commit 4e9cfefb8a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -83,9 +83,9 @@ builder rec {
# Explicitly link against libgcc_s, to work around the infamous
# "libgcc_s.so.1 must be installed for pthread_cancel to work".
# don't have "libgcc_s.so.1" on darwin
# don't have "libgcc_s.so.1" on clang
LDFLAGS = lib.optionalString
(!stdenv.isDarwin && !stdenv.hostPlatform.isStatic) "-lgcc_s";
(stdenv.cc.isGNU && !stdenv.hostPlatform.isStatic) "-lgcc_s";
configureFlags = [
"--with-libreadline-prefix=${lib.getDev readline}"
+2 -2
View File
@@ -82,9 +82,9 @@ builder rec {
# Explicitly link against libgcc_s, to work around the infamous
# "libgcc_s.so.1 must be installed for pthread_cancel to work".
# don't have "libgcc_s.so.1" on darwin
# don't have "libgcc_s.so.1" on clang
LDFLAGS = lib.optionalString
(!stdenv.isDarwin && !stdenv.hostPlatform.isStatic) "-lgcc_s";
(stdenv.cc.isGNU && !stdenv.hostPlatform.isStatic) "-lgcc_s";
configureFlags = [
"--with-libreadline-prefix=${lib.getDev readline}"