git: openjdk/leyden: hermetic-java-runtime: Add experimental native linking (for ld or lld on Linux) part. I added two experimental options to the --link-hermetic-image flag:

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Thu Apr 17 16:38:34 UTC 2025


On 2025-04-09 03:21, duke wrote:

> - `link-command=<link_cmd>`: Specify the complete native linking command
>
> - `pre-linked-exe=<pre_linked_launcher_executable>`: Specify the prelinked launcher executable, no native linking is performed in this case
>
> If the native linking command is specified via the `link-command=<link_cmd>` option (see below example), jlink invokes the native linker and performs the linking step. It finds the output file name/path from the native linking command and the output file is used to create the final hermetic Java image.
> ```
> jlink --hermetic --link-hermetic-image link-command="/usr/bin/g++ ..." ...

Is the plan here to generate this link command line in the build system? 
The example you give seem to use our standard flags...

/Magnus



More information about the leyden-dev mailing list