On Fri, 28 Apr 2023 18:28:51 GMT, Phil Race <p...@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