RFR: 8313592: RISC-V: Link libatomic statically

Hamlin Li mli at openjdk.org
Thu Aug 3 10:36:30 UTC 2023


On Wed, 2 Aug 2023 06:55:40 GMT, Ludovic Henry <luhenry at openjdk.org> wrote:

> Currently, RISC-V differs from other platforms in that it requires the linkage to libatomic.so to support sub-word atomic operations. However, because it is linked dynamically, it will depend on the installation of libatomic.so on the system where the Java application will run, which no other platform require.
> 
> Instead of dynamically linking, we can statically link so that there is no dependency at run-time as it's already statically linked into libjvm.so.

I think you're good to go, as the cross compilation issue should not be introduced by your change, and I saw other PRs have the similar issue.

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

Marked as reviewed by mli (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/15119#pullrequestreview-1560797009



More information about the build-dev mailing list