On Wed, 18 Jan 2023 16:13:25 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:
> We setup a bunch of default library (`-l<lib>`) flags for the JVM compilation > in the variable BASIC_JVM_LIBS in LIB_SETUP_LIBRARIES. Almost all of these > are dependent on OS, and are thus safe to use both the the target and build > compilation (since we do not support cross-OS compilation). However, the > recently added libatomic is only added for certain CPUs. This means that it > needs to be different for the build and target CPUs, but we currently do not > differentiate these. The typical end result of this is that when you try to > cross-compile, the buildjdk will be build with flags that should only have > been used when building for the target platform, and this can cause failures > at runtime (e.g. if no libatomic is installed). Marked as reviewed by erikj (Reviewer). ------------- PR: https://git.openjdk.org/jdk/pull/12075