From 3fd43d5d7494068b2c8a9d904406f64d430dd029 Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 2 Feb 2025 09:47:58 +0300 Subject: [PATCH] gcc: disable symlink checks on cross + nolibc for now This is a hack, but a proper fix requires an stdenv rebuild, so it will have to go to staging. --- pkgs/development/compilers/gcc/common/builder.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/compilers/gcc/common/builder.nix b/pkgs/development/compilers/gcc/common/builder.nix index ce6041c97409..633251910dbe 100644 --- a/pkgs/development/compilers/gcc/common/builder.nix +++ b/pkgs/development/compilers/gcc/common/builder.nix @@ -3,6 +3,7 @@ stdenv, enableMultilib, targetConfig, + withoutTargetLibc, }: let @@ -314,4 +315,7 @@ originalAttrs: done ''; } + // lib.optionalAttrs ((stdenv.targetPlatform.config != stdenv.hostPlatform.config) && withoutTargetLibc) { + dontCheckForBrokenSymlinks = true; + } ))