RFR: 8303796: Optionally build fully statically linked JDK image

Erik Joelsson erikj at openjdk.org
Fri Apr 28 18:26:27 UTC 2023


On Fri, 28 Apr 2023 11:59:52 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> If I understand the make file changes proposed here, it runs the native linker to create "javastatic" with the launcher, libjvm and other JNI libs linked into one executable, this is generated and copied into the run-time image created by jlink. I think this will need discussion as its more like an overlay. I think it is useful to have the build create the .a files as that's the first step towards putting them into packaged modules for producing static images.

The build is already capable of producing .a files and this patch is building on top of that build feature. The current .a file creation is used by the downstream graal build which needs it for nativeimage.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13709#issuecomment-1527925075



More information about the client-libs-dev mailing list