pkgsStatic.gcc: fix build

There's no libgcc.so in a static-only build.
This commit is contained in:
Alyssa Ross 2023-05-03 09:54:47 +00:00
parent 5d61f92342
commit 7f4280c538

View File

@ -6,7 +6,11 @@
}:
let
enableLibGccOutput = (with stdenv; targetPlatform == hostPlatform) && !langJit && !stdenv.hostPlatform.isDarwin;
enableLibGccOutput =
(with stdenv; targetPlatform == hostPlatform) &&
!langJit &&
!stdenv.hostPlatform.isDarwin &&
!stdenv.hostPlatform.isStatic;
in
(pkg: pkg.overrideAttrs (previousAttrs: lib.optionalAttrs ((!langC) || langJit || enableLibGccOutput) {
outputs = previousAttrs.outputs ++ lib.optionals enableLibGccOutput [ "libgcc" ];