2006-03-01 19:09:53 +00:00
|
|
|
{ stdenv, fetchurl, noSysDirs
|
|
|
|
, langC ? true, langCC ? true, langF77 ? false
|
|
|
|
, profiledCompiler ? false
|
2006-10-24 18:26:23 +00:00
|
|
|
, staticCompiler ? false
|
2006-03-01 19:09:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert langC;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-06-21 15:54:18 +00:00
|
|
|
name = "gcc-4.1.1";
|
2006-03-01 19:09:53 +00:00
|
|
|
builder = ./builder.sh;
|
2006-10-24 18:26:23 +00:00
|
|
|
|
|
|
|
src =
|
|
|
|
[(fetchurl {
|
|
|
|
url = http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-core-4.1.1.tar.bz2;
|
|
|
|
md5 = "a1b189c98aa7d7f164036bbe89b9b2a2";
|
|
|
|
})] ++
|
|
|
|
(if langCC then [(fetchurl {
|
|
|
|
url = http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-g++-4.1.1.tar.bz2;
|
|
|
|
md5 = "70c786bf8ca042e880a87fecb9e4dfcd";
|
|
|
|
})] else []) ++
|
|
|
|
(if langF77 then [(fetchurl {
|
|
|
|
url = http://ftp.gnu.org/pub/gnu/gcc/gcc-4.1.1/gcc-fortran-4.1.1.tar.bz2;
|
|
|
|
md5 = "b088a28a1963d16bf505262f8bfd09db";
|
|
|
|
})] else []);
|
|
|
|
|
2006-06-21 15:54:18 +00:00
|
|
|
patches =
|
|
|
|
[./pass-cxxcpp.patch]
|
|
|
|
++ (if noSysDirs then [./no-sys-dirs.patch] else []);
|
2006-10-24 18:26:23 +00:00
|
|
|
|
2006-03-01 19:09:53 +00:00
|
|
|
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
2006-10-12 10:53:16 +00:00
|
|
|
|
2006-10-24 18:26:23 +00:00
|
|
|
configureFlags = "
|
|
|
|
--disable-multilib
|
|
|
|
--disable-libstdcxx-pch
|
|
|
|
--disable-libmudflap
|
|
|
|
--disable-libssp
|
|
|
|
";
|
|
|
|
|
|
|
|
makeFlags = if staticCompiler then "LDFLAGS=-static" else "";
|
|
|
|
|
2006-10-12 10:53:16 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "http://gcc.gnu.org/";
|
|
|
|
license = "GPL/LGPL";
|
|
|
|
description = "GNU Compiler Collection, 4.1.x";
|
|
|
|
};
|
2006-03-01 19:09:53 +00:00
|
|
|
}
|