From 3507be1a6e90212487c6a3b914147d599edba8c3 Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Wed, 20 Aug 2008 00:31:40 +0000 Subject: dbus-java 2.3: Fix compilation with jamvm-native. dbus-java 2.4: Fix compilation with jamvm-native. dbus-java 2.5: New recipe. --- packages/dbus-java/dbus-java_2.4.bb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packages/dbus-java/dbus-java_2.4.bb') diff --git a/packages/dbus-java/dbus-java_2.4.bb b/packages/dbus-java/dbus-java_2.4.bb index 17b7ccec68..37c539b20e 100644 --- a/packages/dbus-java/dbus-java_2.4.bb +++ b/packages/dbus-java/dbus-java_2.4.bb @@ -17,10 +17,15 @@ S = "${WORKDIR}/dbus-java-${PV}" inherit java-library +# jamvm-native unfortunately contains non-generificed java/lang/reflect classes +# which are accessed in this package. Work around this by setting the bootclasspath +# explicitly. +JCFLAGS = "-bootclasspath ${STAGING_DATADIR}/classpath/glibj.zip" + do_compile () { # run target .binclasses first to fix a brokenness in the Makefile oe_runmake \ - JCFLAGS="-source 1.5" \ + JCFLAGS="-source 1.5 ${JCFLAGS}" \ JAVAC="javac" \ JARPREFIX="${STAGING_DATADIR_JAVA}" \ JAVAUNIXJARDIR="${STAGING_DATADIR_JAVA}" \ @@ -28,7 +33,7 @@ do_compile () { JAR="fastjar" \ .binclasses oe_runmake \ - JCFLAGS="-source 1.5" \ + JCFLAGS="-source 1.5 ${JCFLAGS}" \ JAVAC="javac" \ JARPREFIX="${STAGING_DATADIR_JAVA}" \ JAVAUNIXJARDIR="${STAGING_DATADIR_JAVA}" \ -- cgit v1.2.3