[PATCH v3] 8214332: Add a flag for overriding default JNI library search path (original) (raw)

Jakub Vaněk linuxtardis at gmail.com
Wed Nov 28 21:02:24 UTC 2018


On 2018-11-29 at 06:54 +1000, David Holmes wrote:

Hi Jakub,

Are you ready to have this pushed? I can sponsor it if so. David

Hi David,

thanks for your reply, I wasn't responding yesterday and today. I added one more change to handle the situation when the --with flag is used without its argument.

I'd want to settle on this version of the patch, because it maintains compatibility with current status of things and is the easiest to implement.

Thanks,

Jakub

HG changeset patch

User Jakub Vaněk <linuxtardis at gmail.com>

Date 1543266969 -3600

Mon Nov 26 22:16:09 2018 +0100

Node ID 0e938f324f9601d7d86f8acbb6a3f7c65cfc852e

Parent e017d2f176d0119cdc70c9f2ee98e78c0c13f0c7

Add an option for overriding default JNI library search path

diff --git a/doc/building.html b/doc/building.html --- a/doc/building.html +++ b/doc/building.html @@ -464,6 +464,10 @@

  • --with-jvm- features=[,...] - 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= - Create a target binary suitable for running on a 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