summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@gmx.net>2008-09-23 06:20:45 +0000
committerRobert Schuster <thebohemian@gmx.net>2008-09-23 06:20:45 +0000
commit8e055744ef117422347ec5bfb39d60d1230fdbcf (patch)
treecca0447749ee559dc8d1c6502f5dc23a7724f1bd
parent814166e827f34d1f94e5923b1deefe019bdeb78e (diff)
classpath-native: Disable ecj warnings.
classpath: Export JAVA environment variable to be picked up properly by newer classpath versions.
-rw-r--r--packages/classpath/classpath-native.inc1
-rw-r--r--packages/classpath/classpath.inc2
2 files changed, 3 insertions, 0 deletions
diff --git a/packages/classpath/classpath-native.inc b/packages/classpath/classpath-native.inc
index 992a16ec7a..060dd3f540 100644
--- a/packages/classpath/classpath-native.inc
+++ b/packages/classpath/classpath-native.inc
@@ -18,6 +18,7 @@ do_configure_prepend () {
}
export JAVAC="${STAGING_BINDIR_NATIVE}/ecj-initial"
+export JAVACFLAGS="-nowarn"
# Note: the --with-ecj options seems redundant but is
# for compatibility with older classpath versions.
diff --git a/packages/classpath/classpath.inc b/packages/classpath/classpath.inc
index 65bc465200..e0d6a2abb7 100644
--- a/packages/classpath/classpath.inc
+++ b/packages/classpath/classpath.inc
@@ -21,6 +21,8 @@ SRC_URI = "${GNU_MIRROR}/classpath/classpath-${PV}.tar.gz"
S = "${WORKDIR}/${PBN}-${PV}"
+export JAVA = "java"
+
EXTRA_OECONF = "\
--with-glibj \
--with-ecj=javac \