1 --- jdk9u-jdk-9.0.4+12/src/hotspot/os/linux/os_linux.cpp.orig 2020-08-16 13:46:08.240275890 +0200
2 +++ jdk9u-jdk-9.0.4+12/src/hotspot/os/linux/os_linux.cpp 2020-08-16 13:47:54.932632691 +0200
6 // 7: The default directories, normally /lib and /usr/lib.
7 -#if defined(AMD64) || (defined(_LP64) && defined(SPARC)) || defined(PPC64) || defined(S390)
8 - #define DEFAULT_LIBPATH "/usr/lib64:/lib64:/lib:/usr/lib"
9 +#if defined(AMD64) || (defined(_LP64) && defined(SPARC)) || defined(PPC64) || defined(S390) || defined(AARCH64)
10 + #define DEFAULT_LIBPATH "/usr/lib64/java:/usr/lib64:/lib64:/lib:/usr/lib"
13 - // Use 32-bit locations first for AARCH64 (a 64-bit architecture), since some systems
14 - // might not adhere to the FHS and it would be a change in behaviour if we used
15 - // DEFAULT_LIBPATH of other 64-bit architectures which prefer the 64-bit paths.
16 - #define DEFAULT_LIBPATH "/lib:/usr/lib:/usr/lib64:/lib64"
18 - #define DEFAULT_LIBPATH "/lib:/usr/lib"
20 + #define DEFAULT_LIBPATH "/usr/lib/java:/lib:/usr/lib"
23 // Base path of extensions installed on the system.