6778662: fixes 64-bits libraries directory search paths on linux
authorkvn
Mon, 22 Dec 2008 16:53:34 -0800
changeset 1885 ae1dcaf4363f
parent 1884 f61e87294c59
child 1886 bb18bca754c5
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
hotspot/src/os/linux/vm/os_linux.cpp
--- 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"