Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8300550

BASIC_JVM_LIBS is set for buildjdk even if this is incorrect

XMLWordPrintable

    • b06

      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).

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: