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). This pull request has now been integrated. Changeset: ba899b42 Author: Magnus Ihse Bursie <i...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/ba899b42ce2b4b11cd45f8e7795479331d59a1be Stats: 54 lines in 1 file changed: 30 ins; 21 del; 3 mod 8300550: BASIC_JVM_LIBS is set for buildjdk even if this is incorrect Reviewed-by: erikj ------------- PR: https://git.openjdk.org/jdk/pull/12075