-
Bug
-
Resolution: Fixed
-
P4
-
9
-
None
-
b89
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142802 | emb-9 | Erik Joelsson | P4 | Resolved | Fixed | team |
From Matthias Klose on jdk9-dev:
Toolchains for some Linux distributions (e.g. Ubuntu, OpenSuse) are configured to pass --as-needed to the linker by default, only linking with libraries when required. A common build failure triggered by this default is having a required library on the command line before the object files being linked. This happens when linking with a system zlib or system jpeg library.
Patch is attached, checked with b87.
There is one unrelated change, removing the explicit linking with the C library. Is there any reason to keep that?
Matthias
Toolchains for some Linux distributions (e.g. Ubuntu, OpenSuse) are configured to pass --as-needed to the linker by default, only linking with libraries when required. A common build failure triggered by this default is having a required library on the command line before the object files being linked. This happens when linking with a system zlib or system jpeg library.
Patch is attached, checked with b87.
There is one unrelated change, removing the explicit linking with the C library. Is there any reason to keep that?
Matthias
- backported by
-
JDK-8142802 fix the build with a toolchain with a linker defaulting to ld --as-needed
-
- Resolved
-