On Mon, 18 Dec 2023 10:35:48 GMT, Joachim Kern <[email protected]> wrote:
>> src/hotspot/os/aix/porting_aix.cpp line 990:
>>
>>> 988: if (env == nullptr) {
>>> 989: // no LIBPATH, try with LD_LIBRARY_PATH
>>> 990: env = getenv("LD_LIBRARY_PATH");
>>
>> Is LD_LIBRARY_PATH a thing on AIX? I thought it is only used on non-AIX.
>
> Yes it is, It's the fallback if LIBPATH is not defined
In that case there may be errors in other places, since so far we assumed its
either one or the other, but not both. Example:
https://github.com/openjdk/jdk/blob/a247d0c74bea50f11d24fb5f3576947c6901e567/src/java.base/unix/native/libjli/java_md.c#L43C1-L47
Maybe you need to take a look here, in case LD_LIBRARYPATH needs to be handled
in addition to LIBPATH?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16920#discussion_r1429917901