aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/jamvm/jamvm/debian-jni.patch
diff options
context:
space:
mode:
authorSteffen Sledz <sledz@dresearch-fe.de>2012-09-28 12:13:19 +0200
committerSteffen Sledz <sledz@dresearch-fe.de>2012-09-28 12:13:19 +0200
commit3cc90251ccf802274a95f736784f532e21166afb (patch)
tree05a2471a8859992f08faa9ad39996ce1bc3d1c22 /recipes/jamvm/jamvm/debian-jni.patch
parenta35ceaacb2019750dc9f4b4fd5ea927cf2ad47fb (diff)
downloadopenembedded-3cc90251ccf802274a95f736784f532e21166afb.tar.gz
openembedded-3cc90251ccf802274a95f736784f532e21166afb.tar.bz2
openembedded-3cc90251ccf802274a95f736784f532e21166afb.zip
jamvm: reorganize metadata to simplify backport from meta-java
Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de>
Diffstat (limited to 'recipes/jamvm/jamvm/debian-jni.patch')
-rw-r--r--recipes/jamvm/jamvm/debian-jni.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/jamvm/jamvm/debian-jni.patch b/recipes/jamvm/jamvm/debian-jni.patch
new file mode 100644
index 0000000000..040163da69
--- /dev/null
+++ b/recipes/jamvm/jamvm/debian-jni.patch
@@ -0,0 +1,19 @@
+--- src/dll.c.orig 2004-09-09 15:48:45.000000000 +0000
++++ src/dll.c 2004-09-09 15:50:32.000000000 +0000
+@@ -189,6 +189,16 @@
+ #ifndef NO_JNI
+ /* Init hash table, and create lock */
+ initHashTable(hash_table, HASHTABSZE, TRUE);
++
++ /* XXX: Add Debian JNI directory. */
++ char* path = getenv("LD_LIBRARY_PATH");
++
++ if (path != NULL)
++ path = strcat(path, ":OE_LIBDIR_JNI");
++ else
++ path = "OE_LIBDIR_JNI";
++
++ setenv("LD_LIBRARY_PATH", path, 1);
+ #endif
+ }
+