@@ -5426,6 +5426,8 @@ with pkgs;
54265426 cc = buildPackages.gccCrossStageStatic;
54275427 };
54285428
5429+ # The GCC used to build libc for the target platform. Normal gccs will be
5430+ # built with, and use, that cross-compiled libc.
54295431 gccCrossStageStatic = assert targetPlatform != buildPlatform; let
54305432 libcCross1 =
54315433 if targetPlatform.libc == "msvcrt" then __targetPackages.windows.mingw_w64_headers
@@ -5456,12 +5458,6 @@ with pkgs;
54565458 libc = windows.mingw_headers2;
54575459 };
54585460
5459− gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCWith {
5460− name = "gcc-cross-wrapper";
5461− cc = gcc.cc;
5462− libc = libcCross;
5463− };
5464−
54655461 gcc45 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/4.5 {
54665462 inherit noSysDirs;
54675463 texinfo = texinfo4;
@@ -6226,6 +6222,7 @@ with pkgs;
62266222 ccWrapperFun = callPackage ../build-support/cc-wrapper;
62276223
62286224 wrapCC = cc: wrapCCWith {
6225+ name = lib.optionalString (targetPlatform != hostPlatform) "gcc-cross-wrapper";
62296226 inherit cc;
62306227 libc = if targetPlatform != hostPlatform then libcCross else stdenv.cc.libc;
62316228 };