aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-05-24 13:43:20 -0700
committerHenning Heinold <heinold@inf.fu-berlin.de>2013-09-29 21:50:55 +0200
commit9406a34197e0d116bdfcf451f90112b67796455c (patch)
treecb105c2e509045c86475f31050cc9612947b17d9
parent2abf8524c81d3e0e4ec5004721fdc74479bb2790 (diff)
downloadmeta-java-9406a34197e0d116bdfcf451f90112b67796455c.tar.gz
meta-java-9406a34197e0d116bdfcf451f90112b67796455c.tar.bz2
meta-java-9406a34197e0d116bdfcf451f90112b67796455c.zip
java-library.bbclass: Export BOOTCLASSPATH and LD_LIBRARY_PATH
They are helpful in rebuilding from shared state since jamvm is not so relocatable. Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--classes/java-library.bbclass3
-rw-r--r--recipes-core/jamvm/jamvm.inc2
2 files changed, 5 insertions, 0 deletions
diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass
index a74c8d3..749f1fb 100644
--- a/classes/java-library.bbclass
+++ b/classes/java-library.bbclass
@@ -9,6 +9,9 @@
# to set JPN manually!
inherit java
+export LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${STAGING_LIBDIR_NATIVE}/classpath:${STAGING_LIBDIR_NATIVE}/jamvm"
+export BOOTCLASSPATH = "${STAGING_DATADIR_NATIVE}/jamvm/classes.zip:${STAGING_DATADIR_NATIVE}/classpath/glibj.zip"
+
# use java_stage for native packages
JAVA_NATIVE_STAGE_INSTALL = "1"
diff --git a/recipes-core/jamvm/jamvm.inc b/recipes-core/jamvm/jamvm.inc
index 84c8513..e82a780 100644
--- a/recipes-core/jamvm/jamvm.inc
+++ b/recipes-core/jamvm/jamvm.inc
@@ -50,4 +50,6 @@ ALTERNATIVE_PRIORITY = "4"
# shared state for jamvm-native does not work
# since the paths are hardcoded
#SSTATE_MIRRORS_class-native = ""
+export LD_LIBRARY_PATH
+export BOOTCLASSPATH