An attempt to add gcj-4.3. It fails not finding some GC-related symbols. I failed to understand the reason - for now
svn path=/nixpkgs/trunk/; revision=15523
This commit is contained in:
parent
38d6fbd9e4
commit
2a82c141ec
@ -1,10 +1,12 @@
|
|||||||
{ stdenv, fetchurl, noSysDirs
|
{ stdenv, fetchurl, noSysDirs
|
||||||
, langC ? true, langCC ? true, langFortran ? false, langTreelang ? false
|
, langC ? true, langCC ? true, langFortran ? false, langTreelang ? false
|
||||||
|
, langJava ? false
|
||||||
, profiledCompiler ? false
|
, profiledCompiler ? false
|
||||||
, staticCompiler ? false
|
, staticCompiler ? false
|
||||||
, texinfo ? null
|
, texinfo ? null
|
||||||
, gmp, mpfr
|
, gmp, mpfr
|
||||||
, bison ? null, flex ? null
|
, bison ? null, flex ? null
|
||||||
|
, zlib ? null, boehmgc ? null
|
||||||
, enableMultilib ? false
|
, enableMultilib ? false
|
||||||
, name ? "gcc"
|
, name ? "gcc"
|
||||||
}:
|
}:
|
||||||
@ -15,7 +17,7 @@ with stdenv.lib;
|
|||||||
|
|
||||||
let version = "4.3.3"; in
|
let version = "4.3.3"; in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation ({
|
||||||
name = "${name}-${version}";
|
name = "${name}-${version}";
|
||||||
|
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
@ -32,6 +34,10 @@ stdenv.mkDerivation {
|
|||||||
optional langFortran (fetchurl {
|
optional langFortran (fetchurl {
|
||||||
url = "mirror://gcc/releases/gcc-${version}/gcc-fortran-${version}.tar.bz2";
|
url = "mirror://gcc/releases/gcc-${version}/gcc-fortran-${version}.tar.bz2";
|
||||||
sha256 = "1b2wbysviyh7l9fqbd6zy5y6y89xgysy99gr8wx8xkc1hy2nwdsq";
|
sha256 = "1b2wbysviyh7l9fqbd6zy5y6y89xgysy99gr8wx8xkc1hy2nwdsq";
|
||||||
|
}) ++
|
||||||
|
optional langJava (fetchurl {
|
||||||
|
url = "mirror://gcc/releases/gcc-${version}/gcc-java-${version}.tar.bz2";
|
||||||
|
sha256 = "1mlazpydd9qv7zwxkbb5sw3clfawfndhcc3f5lzycminvn6qmfkb";
|
||||||
});
|
});
|
||||||
|
|
||||||
patches =
|
patches =
|
||||||
@ -42,7 +48,10 @@ stdenv.mkDerivation {
|
|||||||
inherit noSysDirs profiledCompiler staticCompiler;
|
inherit noSysDirs profiledCompiler staticCompiler;
|
||||||
|
|
||||||
buildInputs = [texinfo gmp mpfr]
|
buildInputs = [texinfo gmp mpfr]
|
||||||
++ optionals langTreelang [bison flex];
|
++ (optionals langTreelang [bison flex])
|
||||||
|
++ (optional (zlib != null) zlib)
|
||||||
|
++ (optional (boehmgc != null) boehmgc)
|
||||||
|
;
|
||||||
|
|
||||||
configureFlags = "
|
configureFlags = "
|
||||||
${if enableMultilib then "" else "--disable-multilib"}
|
${if enableMultilib then "" else "--disable-multilib"}
|
||||||
@ -53,6 +62,7 @@ stdenv.mkDerivation {
|
|||||||
( optional langC "c"
|
( optional langC "c"
|
||||||
++ optional langCC "c++"
|
++ optional langCC "c++"
|
||||||
++ optional langFortran "fortran"
|
++ optional langFortran "fortran"
|
||||||
|
++ optional langJava "java"
|
||||||
++ optional langTreelang "treelang"
|
++ optional langTreelang "treelang"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -71,4 +81,10 @@ stdenv.mkDerivation {
|
|||||||
license = "GPL/LGPL";
|
license = "GPL/LGPL";
|
||||||
description = "GNU Compiler Collection, 4.3.x";
|
description = "GNU Compiler Collection, 4.3.x";
|
||||||
};
|
};
|
||||||
}
|
} // (if langJava then {
|
||||||
|
postConfigure = ''
|
||||||
|
make configure-gcc
|
||||||
|
sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${zlib}/include@ ; s@^LDFLAGS = .*@& -L${zlib}/lib@'
|
||||||
|
sed -i gcc/Makefile -e 's@^CFLAGS = .*@& -I${boehmgc}/include@ ; s@^LDFLAGS = .*@& -L${boehmgc}/lib -lgc@'
|
||||||
|
'';
|
||||||
|
} else {}))
|
||||||
|
@ -1639,6 +1639,18 @@ let
|
|||||||
profiledCompiler = false;
|
profiledCompiler = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gcj = gcj43;
|
||||||
|
|
||||||
|
gcj43 = wrapGCC (gcc43_real.gcc.override {
|
||||||
|
name = "gcj";
|
||||||
|
langJava = true;
|
||||||
|
langFortran = false;
|
||||||
|
langCC = true;
|
||||||
|
langC = false;
|
||||||
|
profiledCompiler = false;
|
||||||
|
inherit zlib boehmgc;
|
||||||
|
});
|
||||||
|
|
||||||
# This new ghc stuff is under heavy development and will change !
|
# This new ghc stuff is under heavy development and will change !
|
||||||
# ===============================================================
|
# ===============================================================
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user