summaryrefslogtreecommitdiff
path: root/packages/jamvm/files/debian-jni.patch
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2008-02-12 13:42:34 +0000
committerPhilip Balister <philip@balister.org>2008-02-12 13:42:34 +0000
commit64efb6d640ada9fffcb4c98a1e4ae4f8d2bd0e9c (patch)
treec5581b96374be871d59809b2934aa791ccc5bfdf /packages/jamvm/files/debian-jni.patch
parent73c9713cacf49f300e034bbb6b47df17caf29d4f (diff)
parent3168ff71a18d3bfa339f0ccdace03878ab2094f2 (diff)
merge of '967336334b2d3b22623c9851eb0ab8a2f5ad19c2'
and 'f1ce41fae2ee4dc6bfc75fb8d991a37869ef24d8'
Diffstat (limited to 'packages/jamvm/files/debian-jni.patch')
-rw-r--r--packages/jamvm/files/debian-jni.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/jamvm/files/debian-jni.patch b/packages/jamvm/files/debian-jni.patch
new file mode 100644
index 0000000000..040163da69
--- /dev/null
+++ b/packages/jamvm/files/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
+ }
+