2005-12-31 15:09:44 +01:00
|
|
|
{ stdenv, fetchurl, noSysDirs
|
|
|
|
, langC ? true, langCC ? true, langF77 ? false
|
|
|
|
, profiledCompiler ? false
|
|
|
|
, binutilsCross
|
|
|
|
, kernelHeadersCross
|
|
|
|
, cross
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert langC;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "gcc-4.0.2";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
|
|
|
#url = ftp://ftp.nluug.nl/pub/gnu/gcc/gcc-4.0.2/gcc-core-4.0.2.tar.bz2;
|
2006-01-30 17:04:03 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/gcc-core-4.0.2.tar.bz2;
|
2005-12-31 15:09:44 +01:00
|
|
|
md5 = "f7781398ada62ba255486673e6274b26";
|
|
|
|
#url = ftp://ftp.nluug.nl/pub/gnu/gcc/gcc-4.0.2/gcc-4.0.2.tar.bz2;
|
|
|
|
#md5 = "a659b8388cac9db2b13e056e574ceeb0";
|
|
|
|
};
|
|
|
|
# !!! apply only if noSysDirs is set
|
|
|
|
patches = [./no-sys-dirs.patch] ++ (if cross == "arm-linux" then [./gcc-inhibit.patch] else []);
|
|
|
|
#patches = [./no-sys-dirs.patch ./gcc-inhibit.patch];
|
|
|
|
#patches = [./no-sys-dirs.patch];
|
|
|
|
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
|
|
|
buildInputs = [binutilsCross];
|
|
|
|
inherit kernelHeadersCross binutilsCross;
|
|
|
|
platform = cross;
|
2006-03-10 17:12:46 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://gcc.gnu.org/";
|
|
|
|
license = "GPL/LGPL";
|
|
|
|
description = "GNU Compiler Collection, 4.0.x (cross-compiler for " + cross + ")";
|
|
|
|
};
|
2005-12-31 15:09:44 +01:00
|
|
|
}
|