openjdk-6-6b18: Fix cacao on soft-float systems.
authorXerxes Rånby <xerxes@zafena.se>
Mon, 26 Jul 2010 11:30:04 +0000 (13:30 +0200)
committerXerxes Rånby <xerxes@zafena.se>
Mon, 26 Jul 2010 12:36:20 +0000 (14:36 +0200)
* openjdk-6-common.inc: Configure cacao with --enable-softfloat
on systems that are not equipped with a FPU.
This fixes openjdk + cacao on ARMv4 and ARMv5 systems.
Bumped PR.

recipes/openjdk/openjdk-6-common.inc

index 3c81520..8da940f 100644 (file)
@@ -72,7 +72,9 @@ inherit java autotools
 export ALT_CUPS_HEADERS_PATH = "${STAGING_INCDIR}"
 export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2"
 export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}"
-export CACAO_CONFIGURE_ARGS = "--with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-openjdk-0.99.4"
+export CACAO_CONFIGURE_ARGS = "\
+       ${@['','--enable-softfloat'][bb.data.getVar('TARGET_FPU',d,1) == 'soft']} \
+       --with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-openjdk-0.99.4"
 
 JAVA_HOME[unexport] = "1"