classpath-native.inc: Set JAVAC through environment variable.
authorRobert Schuster <thebohemian@gmx.net>
Tue, 22 Jul 2008 06:43:10 +0000 (06:43 +0000)
committerRobert Schuster <thebohemian@gmx.net>
Tue, 22 Jul 2008 06:43:10 +0000 (06:43 +0000)
classpath.inc: Set JAVAC through environment variable.

packages/classpath/classpath-native.inc
packages/classpath/classpath.inc

index bb5abaf..310ca3c 100644 (file)
@@ -10,6 +10,10 @@ DEPENDS = "ecj-initial fastjar-native zip-native"
 
 inherit autotools native
 
+# Newer versions expect setting the compiler through this
+# environment variable.
+export JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial
+
 EXTRA_OECONF = "\
   --with-glibj \
   --with-ecj=${STAGING_BINDIR_NATIVE}/ecj-initial \
index cfb9f1c..0ea5d36 100644 (file)
@@ -20,9 +20,13 @@ SRC_URI = "${GNU_MIRROR}/classpath/classpath-${PV}.tar.gz"
 
 S = "${WORKDIR}/${PBN}-${PV}"
 
+# Newer versions expect setting the compiler through this
+# environment variable.
+export JAVAC=${STAGING_BINDIR_NATIVE}/javac
+
 EXTRA_OECONF = "\
   --with-glibj \
-  --with-ecj=javac \
+  --with-ecj=${STAGING_BINDIR_NATIVE}/javac \
   --with-fastjar=fastjar \
   --includedir=${includedir}/classpath \
   --with-vm=java \