2004-09-18 17:23:18 +00:00
|
|
|
{ stdenv, fetchurl, noSysDirs
|
2004-06-29 08:25:55 +00:00
|
|
|
, langC ? true, langCC ? true, langF77 ? false
|
2004-07-01 12:17:53 +00:00
|
|
|
, profiledCompiler ? false
|
2004-06-29 08:25:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert langC;
|
|
|
|
|
2007-11-16 13:08:20 +00:00
|
|
|
with import ../../../lib;
|
|
|
|
|
2004-06-29 08:25:55 +00:00
|
|
|
stdenv.mkDerivation {
|
2006-06-23 11:09:07 +00:00
|
|
|
name = "gcc-3.4.6";
|
2004-06-29 08:25:55 +00:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-08-27 13:42:00 +00:00
|
|
|
url = mirror://gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2;
|
2006-06-23 11:09:07 +00:00
|
|
|
md5 = "4a21ac777d4b5617283ce488b808da7b";
|
2004-06-29 08:25:55 +00:00
|
|
|
};
|
2006-10-26 11:25:29 +00:00
|
|
|
|
|
|
|
patches = if noSysDirs then [./no-sys-dirs.patch] else [];
|
|
|
|
|
2007-11-16 13:08:20 +00:00
|
|
|
inherit noSysDirs profiledCompiler;
|
|
|
|
|
|
|
|
configureFlags = "
|
|
|
|
--disable-multilib
|
|
|
|
--with-system-zlib
|
|
|
|
--enable-languages=${
|
|
|
|
concatStrings (intersperse ","
|
|
|
|
( optional langC "c"
|
|
|
|
++ optional langCC "c++"
|
|
|
|
++ optional langF77 "f77"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
";
|
|
|
|
|
|
|
|
passthru = { inherit langC langCC langF77; };
|
2006-10-12 10:53:16 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://gcc.gnu.org/";
|
|
|
|
license = "GPL/LGPL";
|
|
|
|
description = "GNU Compiler Collection, 3.4.x";
|
|
|
|
};
|
2004-06-29 08:25:55 +00:00
|
|
|
}
|