From b2bf2d252b84cdb2ece6f957df82c4337bd77c75 Mon Sep 17 00:00:00 2001 From: Jakub Vanek Date: Wed, 28 Nov 2018 22:29:35 -0500 Subject: [PATCH] 8214332: Add a flag for overriding default JNI library search path Reviewed-by: erikj, dholmes --- doc/building.html | 4 ++++ doc/building.md | 8 ++++++++ make/autoconf/jdk-options.m4 | 22 ++++++++++++++++++++++ make/autoconf/spec.gmk.in | 3 +++ make/hotspot/lib/JvmFlags.gmk | 4 ++++ src/hotspot/os/aix/os_aix.cpp | 6 +++++- src/hotspot/os/bsd/os_bsd.cpp | 6 +++++- src/hotspot/os/linux/os_linux.cpp | 10 +++++++--- 8 files changed, 58 insertions(+), 5 deletions(-) diff --git a/doc/building.html b/doc/building.html index 5df2e305676..07914b7c418 100644 --- a/doc/building.html +++ b/doc/building.html @@ -464,6 +464,10 @@ CC: Sun C++ 5.13 SunOS_i386 151846-10 2015/10/30
  • --with-jvm-features=<feature>[,<feature>...] - Use the specified JVM features when building Hotspot. The list of features will be enabled on top of the default list. For the custom JVM variant, this default list is empty. A complete list of available JVM features can be found using bash configure --help.
  • --with-target-bits=<bits> - Create a target binary suitable for running on a <bits> platform. Use this to create 32-bit output on a 64-bit build platform, instead of doing a full cross-compile. (This is known as a reduced build.)
  • +

    On Linux, BSD and AIX, it is possible to override where Java by default searches for runtime/JNI libraries. This can be useful in situations where there is a special shared directory for system JNI libraries. This setting can in turn be overriden at runtime by setting the java.library.path property.

    +

    Configure Arguments for Native Compilation