diff --git a/pkgs/development/compilers/gcc/default.nix b/pkgs/development/compilers/gcc/default.nix index 91d27aba7e2b..66affd84a593 100644 --- a/pkgs/development/compilers/gcc/default.nix +++ b/pkgs/development/compilers/gcc/default.nix @@ -391,5 +391,13 @@ pipe ((callFile ./common/builder.nix {}) ({ (callPackage ./common/libgcc.nix { inherit version langC langCC langJit targetPlatform hostPlatform withoutTargetLibc enableShared libcCross; }) ] ++ optionals atLeast11 [ (callPackage ./common/checksum.nix { inherit langC langCC; }) -]) +] + # This symlink points to itself, and we disallow that now by noBrokenSymlinks (#370750) + # TODO: find how exactly this happens and solve it in a better way. + ++ optional langJit (pkg: pkg.overrideAttrs (attrs: { + postInstall = attrs.postInstall or "" + '' + rm "$out/lib/lib" + ''; + })) +)