|
| 1 | +Index: b/src/hotspot/os/linux/os_linux.cpp |
| 2 | +=================================================================== |
| 3 | +--- a/src/hotspot/os/linux/os_linux.cpp |
| 4 | ++++ b/src/hotspot/os/linux/os_linux.cpp |
| 5 | +@@ -325,10 +325,10 @@ void os::init_system_properties_values() |
| 6 | + // 1: ... |
| 7 | + // ... |
| 8 | + // 7: The default directories, normally /lib and /usr/lib. |
| 9 | +-#if defined(AMD64) || (defined(_LP64) && defined(SPARC)) || defined(PPC64) || defined(S390) |
| 10 | +- #define DEFAULT_LIBPATH "/usr/lib64:/lib64:/lib:/usr/lib" |
| 11 | ++#ifdef DEB_MULTIARCH |
| 12 | ++#define DEFAULT_LIBPATH "/usr/lib/" DEB_MULTIARCH "/jni" ":/lib/" DEB_MULTIARCH ":/usr/lib/" DEB_MULTIARCH ":/usr/lib/jni:/lib:/usr/lib" |
| 13 | + #else |
| 14 | +- #define DEFAULT_LIBPATH "/lib:/usr/lib" |
| 15 | ++ #define DEFAULT_LIBPATH "/usr/lib/jni:/lib:/usr/lib" |
| 16 | + #endif |
| 17 | + |
| 18 | + // Base path of extensions installed on the system. |
| 19 | +Index: b/make/hotspot/lib/CompileJvm.gmk |
| 20 | +=================================================================== |
| 21 | +--- a/make/hotspot/lib/CompileJvm.gmk |
| 22 | ++++ b/make/hotspot/lib/CompileJvm.gmk |
| 23 | +@@ -129,6 +129,11 @@ ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TAR |
| 24 | + endif |
| 25 | + endif |
| 26 | + |
| 27 | ++DEB_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null || true) |
| 28 | ++ifneq (,$(DEB_MULTIARCH)) |
| 29 | ++JVM_CFLAGS += -DDEB_MULTIARCH="\"$(DEB_MULTIARCH)\"" |
| 30 | ++endif |
| 31 | ++ |
| 32 | + ifeq ($(OPENJDK_TARGET_OS), windows) |
| 33 | + ifeq ($(OPENJDK_TARGET_CPU_BITS), 64) |
| 34 | + RC_DESC := 64-Bit$(SPACE) |
0 commit comments