diff options
author | André Draszik <andre.draszik@jci.com> | 2018-03-15 13:45:47 +0200 |
---|---|---|
committer | Maxin B. John <maxin.john@intel.com> | 2018-03-15 13:47:20 +0200 |
commit | af897090975d102d6136b2b64164b78da3b381c9 (patch) | |
tree | 146aabc72c97c5ee67ae6db4d7e81e109bbac470 /licenses | |
parent | 536cee3023d3464f9eb798459509719bed765c10 (diff) | |
download | meta-java-af897090975d102d6136b2b64164b78da3b381c9.tar.gz |
openjdk-8: fix build with --as-needed host toolchains (Ubuntu 16.04)
As per the commit message - build on hosts with --as-needed
toolchains (Ubuntu 16.04) using system provided zlib fails:
If the (host) toolchain has been configured to
unconditionally add --as-needed to the linker command line
then linking can fail when using system libraries.
The reason is that the order of command line arguments
becomes important with --as-needed and the JDK build system
places needed system libraries at the beginning of the
command line where it would normally place the object files
from its own bundled compiled version.
Having those system libraries early in the command line is
not useful, as they are discarded by the linker at that
point in time as it hasn't seen any reference to the
symbols provided yet.
As it seems a generic pattern in the makefiles here, just
place the $EXPECTED_OBJS early in the command line, before
any additional libraries, so as to fix this once and for
all.
Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Diffstat (limited to 'licenses')
0 files changed, 0 insertions, 0 deletions