pkgsStatic.gcc: fix build
There's no libgcc.so in a static-only build.
This commit is contained in:
parent
5d61f92342
commit
7f4280c538
@ -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" ];
|
||||
|
Loading…
Reference in New Issue
Block a user