GCJ 4.4: Pass ecj.jar' using
--with-ecj-jar'.
svn path=/nixpkgs/trunk/; revision=16434
This commit is contained in:
parent
3c7bb6a957
commit
279a94a637
@ -62,12 +62,6 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
preConfigure() {
|
preConfigure() {
|
||||||
# Copy `ecj.jar' to `$(top_srcdir)' when available.
|
|
||||||
if [ -f "$javaEcj" ]
|
|
||||||
then
|
|
||||||
cp -v "$javaEcj" "ecj.jar"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Perform the build in a different directory.
|
# Perform the build in a different directory.
|
||||||
mkdir ../build
|
mkdir ../build
|
||||||
cd ../build
|
cd ../build
|
||||||
|
@ -16,7 +16,17 @@ assert langTreelang -> bison != null && flex != null;
|
|||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
let version = "4.4.0"; in
|
let version = "4.4.0";
|
||||||
|
javaEcj = fetchurl {
|
||||||
|
# The `$(top_srcdir)/ecj.jar' file is automatically picked up at
|
||||||
|
# `configure' time.
|
||||||
|
|
||||||
|
# XXX: Eventually we might want to take it from upstream.
|
||||||
|
url = "ftp://sourceware.org/pub/java/ecj-4.3.jar";
|
||||||
|
sha256 = "0jz7hvc0s6iydmhgh5h2m15yza7p2rlss2vkif30vm9y77m97qcx";
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = "${name}-${version}";
|
name = "${name}-${version}";
|
||||||
@ -53,19 +63,6 @@ stdenv.mkDerivation ({
|
|||||||
++ optional noSysDirs ./no-sys-dirs.patch
|
++ optional noSysDirs ./no-sys-dirs.patch
|
||||||
++ optional (noSysDirs && langFortran) ./no-sys-dirs-fortran.patch;
|
++ optional (noSysDirs && langFortran) ./no-sys-dirs-fortran.patch;
|
||||||
|
|
||||||
javaEcj =
|
|
||||||
if langJava
|
|
||||||
then fetchurl {
|
|
||||||
# The `$(top_srcdir)/ecj.jar' file is automatically picked up at
|
|
||||||
# `configure' time.
|
|
||||||
|
|
||||||
# XXX: Eventually we might want to take it from upstream.
|
|
||||||
url = "ftp://sourceware.org/pub/java/ecj-4.3.jar";
|
|
||||||
sha256 = "0jz7hvc0s6iydmhgh5h2m15yza7p2rlss2vkif30vm9y77m97qcx";
|
|
||||||
}
|
|
||||||
else "";
|
|
||||||
|
|
||||||
|
|
||||||
inherit noSysDirs profiledCompiler staticCompiler;
|
inherit noSysDirs profiledCompiler staticCompiler;
|
||||||
|
|
||||||
buildInputs = [ texinfo gmp mpfr gettext ]
|
buildInputs = [ texinfo gmp mpfr gettext ]
|
||||||
@ -80,6 +77,7 @@ stdenv.mkDerivation ({
|
|||||||
${if enableMultilib then "" else "--disable-multilib"}
|
${if enableMultilib then "" else "--disable-multilib"}
|
||||||
${if ppl != null then "--with-ppl=${ppl}" else ""}
|
${if ppl != null then "--with-ppl=${ppl}" else ""}
|
||||||
${if cloogppl != null then "--with-cloog=${cloogppl}" else ""}
|
${if cloogppl != null then "--with-cloog=${cloogppl}" else ""}
|
||||||
|
${if langJava then "--with-ecj-jar=${javaEcj}" else ""}
|
||||||
--disable-libstdcxx-pch
|
--disable-libstdcxx-pch
|
||||||
--without-included-gettext
|
--without-included-gettext
|
||||||
--with-system-zlib
|
--with-system-zlib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user