changeset 1885:ae1dcaf4363f

6778662: fixes 64-bits libraries directory search paths on linux Summary: Fixes 64-bits libraries directory search paths. Reviewed-by: never Contributed-by: langel@redhat.com
author kvn
date Mon, 22 Dec 2008 16:53:34 -0800
parents f61e87294c59
children bb18bca754c5
files hotspot/src/os/linux/vm/os_linux.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Mon Dec 22 15:43:02 2008 -0800
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Mon Dec 22 16:53:34 2008 -0800
@@ -279,7 +279,11 @@
  *        ...
  *        7: The default directories, normally /lib and /usr/lib.
  */
+#if defined(AMD64) || defined(_LP64) && (defined(SPARC) || 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"