From d0903cc2f9f9c9914cee612fb60af1c96fe5b3cf Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Mon, 19 Jan 2004 20:38:23 +0000 Subject: . 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 --- java/jdk12/files/patch-javai_md.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 java/jdk12/files/patch-javai_md.c (limited to 'java/jdk12/files/patch-javai_md.c') diff --git a/java/jdk12/files/patch-javai_md.c b/java/jdk12/files/patch-javai_md.c new file mode 100644 index 000000000000..a3dde4d9de48 --- /dev/null +++ b/java/jdk12/files/patch-javai_md.c @@ -0,0 +1,13 @@ +$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"); -- cgit v1.2.3