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
--- 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"