JDK-6778662 : fixes 64-bits libraries directory search paths on linux
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-12-02
  • Updated: 2012-10-08
  • Resolved: 2009-02-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u18Fixed 7Fixed hs15Fixed
Description
Patch submitted by Lilian Angel from Red Hat.

--- origopenjdk/hotspot/src/os/linux/vm/os_linux.cpp    2008-01-04 18:11:53.000000000 -0500
+++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp        2008-04-21 14:00:59.000000000 -0400
@@ -265,7 +265,12 @@
  *       ...
  *       7: The default directories, normally /lib and /usr/lib.
  */
-#define DEFAULT_LIBPATH        "/lib:/usr/lib"
+
+#if defined(AMD64) || defined(_LP64) && (defined(PPC) || defined(S390))
+#define DEFAULT_LIBPATH "/usr/lib64:/lib64:/lib:/usr/lib"
+#else
+#define DEFAULT_LIBPATH        "/lib:/usr/lib"
+#endif

 #define EXTENSIONS_DIR "/lib/ext"
 #define ENDORSED_DIR   "/lib/endorsed"

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/9656bebe85a7
23-12-2008