1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/java/jdk13/files/patch-javai_md.c
Greg Lewis 21c8a9307f . 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 19:28:40 +00:00

14 lines
483 B
C

$FreeBSD$
--- ../src/solaris/javavm/runtime/javai_md.c 24 Jul 2003 07:06:56 -0000 1.7
+++ ../src/solaris/javavm/runtime/javai_md.c 15 Jan 2004 07:37:23 -0000
@@ -137,7 +137,7 @@
#ifdef __linux__
#define DEFAULT_LD_LIBRARY_PATH "/usr/lib:/lib" /* See ld.so(8) */
#else
-#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) */
#endif
{
/* Get the user setting of LD_LIBRARY_PATH */