RFR: 8346394: Bundled freetype library needs to have JNI_OnLoad for static builds [v3]
David Holmes
dholmes at openjdk.org
Thu Dec 19 02:54:47 UTC 2024
On Wed, 18 Dec 2024 10:14:45 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> The solution chosen by the original implementors of static builds was to look for a symbol JNI_OnLoad_someInternalLibrary, and if it was found, skip loading the dynamic library.
Is that necessary? Presumably if you try to dynamically load a statically linked library it will fail. Does the failure indicate the reason? If so then just ignore it.
> It does have the advantage that users can add static libraries of their own in this way.
Is this intended to be a supported mechanism? That needs to be specified and documented somewhere if so.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22791#issuecomment-2552666801
More information about the build-dev
mailing list