freebsd-ports/java/jdk12/files/patch-javai_md.c
Greg Lewis d0903cc2f9 . Add ${LOCALBASE}/lib to the default search path for libraries when using
JNI.

XXX: Maybe ${X11BASE}/lib and /lib (5.x dynamic root support) should also
     be added?  /lib is part of the default search path on Linux.

Requested by:   marcus
2004-01-19 20:38:23 +00:00

13 lines
460 B
C

$FreeBSD$
--- ../../src/bsd/javavm/runtime/javai_md.c Mon Jan 19 12:37:59 2004
+++ ../../src/bsd/javavm/runtime/javai_md.c Mon Jan 19 12:32:23 2004
@@ -147,7 +147,7 @@
}
/* Where to look for native libraries */
-#define DEFAULT_LD_LIBRARY_PATH "/usr/lib" /* See ld.so.1(1) */
+#define DEFAULT_LD_LIBRARY_PATH "/usr/lib:%%LOCALBASE%%/lib" /* See ld.so.1(1) */
{
/* Get the user setting of LD_LIBRARY_PATH */
v = getenv("LD_LIBRARY_PATH");