about summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-10-11 12:01:48 +0000
committerGitHub <noreply@github.com>2023-10-11 12:01:48 +0000
commitaca616eec24900694a6105e4066e62f32b311fc8 (patch)
tree62e37b217c3d69c156d3a7a8b7e5b507847d5b50 /pkgs/development/compilers/gcc
parentaf253d8a7e8462daff1dde1406fb1ca736a26aec (diff)
parent0e9411554dce69228ae9e348b1cbf6d89832ce91 (diff)
downloadnixlib-aca616eec24900694a6105e4066e62f32b311fc8.tar
nixlib-aca616eec24900694a6105e4066e62f32b311fc8.tar.gz
nixlib-aca616eec24900694a6105e4066e62f32b311fc8.tar.bz2
nixlib-aca616eec24900694a6105e4066e62f32b311fc8.tar.lz
nixlib-aca616eec24900694a6105e4066e62f32b311fc8.tar.xz
nixlib-aca616eec24900694a6105e4066e62f32b311fc8.tar.zst
nixlib-aca616eec24900694a6105e4066e62f32b311fc8.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/compilers/gcc')
-rw-r--r--pkgs/development/compilers/gcc/common/pre-configure.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/compilers/gcc/common/pre-configure.nix b/pkgs/development/compilers/gcc/common/pre-configure.nix
index 6c36c0a21e2b..77179d739768 100644
--- a/pkgs/development/compilers/gcc/common/pre-configure.nix
+++ b/pkgs/development/compilers/gcc/common/pre-configure.nix
@@ -116,13 +116,12 @@ in lib.optionalString (hostPlatform.isSunOS && hostPlatform.is64bit) ''
 
 # Normally (for host != target case) --without-headers automatically
 # enables 'inhibit_libc=true' in gcc's gcc/configure.ac. But case of
-# gcc->clang "cross"-compilation manages to evade it: there
+# gcc->clang or dynamic->static "cross"-compilation manages to evade it: there
 # hostPlatform != targetPlatform, hostPlatform.config == targetPlatform.config.
 # We explicitly inhibit libc headers use in this case as well.
 + lib.optionalString (targetPlatform != hostPlatform &&
                       withoutTargetLibc &&
-                      targetPlatform.config == hostPlatform.config &&
-                      (stdenv.cc.isClang || stdenv.targetPlatform.useLLVM or false)) ''
+                      targetPlatform.config == hostPlatform.config) ''
   export inhibit_libc=true
 ''