all-packages: Remove gccCrossStageFinal; any gcc will not work

wip/yesman
John Ericson 7 years ago
parent 88a0e55ce0
commit b9bf90ca6c
  1. 4
      pkgs/os-specific/gnu/default.nix
  2. 2
      pkgs/stdenv/cross/default.nix
  3. 9
      pkgs/top-level/all-packages.nix
  4. 2
      pkgs/top-level/release-cross.nix

@ -2,7 +2,7 @@
args@{ fetchgit, stdenv, autoconf, automake, automake111x, libtool
, texinfo, glibcCross, hurdPartedCross, libuuid, samba
, gccCrossStageStatic, gccCrossStageFinal
, gccCrossStageStatic, gcc
, forceSystem, newScope, platform, config
, targetPlatform, buildPlatform
, overrides ? {}
@ -28,7 +28,7 @@ let
automake = automake111x;
headersOnly = false;
cross = assert targetPlatform != buildPlatform; targetPlatform;
gccCross = gccCrossStageFinal;
gccCross = gcc;
};
hurdCrossIntermediate = forcedNativePackages.callPackage ./hurd {

@ -35,7 +35,7 @@ in bootStages ++ [
targetPlatform = crossSystem;
cc = if crossSystem.useiOSCross or false
then buildPackages.darwin.ios-cross
else buildPackages.gccCrossStageFinal;
else buildPackages.gcc;
};
})

@ -5426,6 +5426,8 @@ with pkgs;
cc = buildPackages.gccCrossStageStatic;
};
# The GCC used to build libc for the target platform. Normal gccs will be
# built with, and use, that cross-compiled libc.
gccCrossStageStatic = assert targetPlatform != buildPlatform; let
libcCross1 =
if targetPlatform.libc == "msvcrt" then __targetPackages.windows.mingw_w64_headers
@ -5456,12 +5458,6 @@ with pkgs;
libc = windows.mingw_headers2;
};
gccCrossStageFinal = assert targetPlatform != buildPlatform; wrapCCWith {
name = "gcc-cross-wrapper";
cc = gcc.cc;
libc = libcCross;
};
gcc45 = lowPrio (wrapCC (callPackage ../development/compilers/gcc/4.5 {
inherit noSysDirs;
texinfo = texinfo4;
@ -6226,6 +6222,7 @@ with pkgs;
ccWrapperFun = callPackage ../build-support/cc-wrapper;
wrapCC = cc: wrapCCWith {
name = lib.optionalString (targetPlatform != hostPlatform) "gcc-cross-wrapper";
inherit cc;
libc = if targetPlatform != hostPlatform then libcCross else stdenv.cc.libc;
};

@ -19,7 +19,7 @@ let
};
gnuCommon = lib.recursiveUpdate common {
buildPackages.gccCrossStageFinal = nativePlatforms;
buildPackages.gcc = nativePlatforms;
coreutils = nativePlatforms;
};

Loading…
Cancel
Save