nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 37 lines 1.6 kB view raw
1diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp 2index 0dbe03349e..847d56778d 100644 3--- a/src/hotspot/os/linux/os_linux.cpp 4+++ b/src/hotspot/os/linux/os_linux.cpp 5@@ -326,13 +326,13 @@ void os::init_system_properties_values() { 6 // ... 7 // 7: The default directories, normally /lib and /usr/lib. 8 #if defined(AMD64) || (defined(_LP64) && defined(SPARC)) || defined(PPC64) || defined(S390) 9- #define DEFAULT_LIBPATH "/usr/lib64:/lib64:/lib:/usr/lib" 10+ #define DEFAULT_LIBPATH "" 11 #else 12- #define DEFAULT_LIBPATH "/lib:/usr/lib" 13+ #define DEFAULT_LIBPATH "" 14 #endif 15 16 // Base path of extensions installed on the system. 17-#define SYS_EXT_DIR "/usr/java/packages" 18+#define SYS_EXT_DIR "" 19 #define EXTENSIONS_DIR "/lib/ext" 20 21 // Buffer that fits several sprintfs. 22@@ -392,13 +392,13 @@ void os::init_system_properties_values() { 23 strlen(v) + 1 + 24 sizeof(SYS_EXT_DIR) + sizeof("/lib/") + sizeof(DEFAULT_LIBPATH) + 1, 25 mtInternal); 26- sprintf(ld_library_path, "%s%s" SYS_EXT_DIR "/lib:" DEFAULT_LIBPATH, v, v_colon); 27+ sprintf(ld_library_path, "%s", v); 28 Arguments::set_library_path(ld_library_path); 29 FREE_C_HEAP_ARRAY(char, ld_library_path); 30 } 31 32 // Extensions directories. 33- sprintf(buf, "%s" EXTENSIONS_DIR ":" SYS_EXT_DIR EXTENSIONS_DIR, Arguments::get_java_home()); 34+ sprintf(buf, "%s" EXTENSIONS_DIR, Arguments::get_java_home()); 35 Arguments::set_ext_dirs(buf); 36 37 FREE_C_HEAP_ARRAY(char, buf);