RFR: 8313592: RISC-V: Link libatomic statically

Fei Yang fyang at openjdk.org
Fri Aug 4 09:13: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.

Hello, did you check the license for libatomic.a? Is it compatible with libjvm.so? I am not quite sure whether this will have an impact on vendors who want to make a release of their own. AFAIK, linking to some GPL static libs means open source in certain cases.

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

PR Comment: https://git.openjdk.org/jdk/pull/15119#issuecomment-1665290377



More information about the build-dev mailing list