RFR: 8303796: Optionally build fully statically linked JDK image

Jiangli Zhou jiangli at openjdk.org
Sat Apr 29 01:29:53 UTC 2023


On Fri, 28 Apr 2023 18:28:51 GMT, Phil Race <prr at openjdk.org> wrote:

> Umm. Does this mean you are linking both headless and xawt into the same image ?

For the xawt case, we statically link with libawt.a and libawt_xawt.a in our early prototype. For headless case, we statically link with libawt.a and libawt_headless.a. We have been focusing on testing with the headless usages.

The libawt provides `AWT_OnLoad`, which handles the 'loading' of libawt_xawt or libawt_headless. By filtering out the duplicate .o files in the static linking case, it can work without larger refactoring the sources in the those libraries.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13709#discussion_r1180900245



More information about the build-dev mailing list