summaryrefslogtreecommitdiffstats
path: root/recipes-core/jamvm/jamvm/jamvm-jni_h-noinst.patch
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2018-03-15 13:45:47 +0200
committerMaxin B. John <maxin.john@intel.com>2018-03-15 13:47:20 +0200
commitaf897090975d102d6136b2b64164b78da3b381c9 (patch)
tree146aabc72c97c5ee67ae6db4d7e81e109bbac470 /recipes-core/jamvm/jamvm/jamvm-jni_h-noinst.patch
parent536cee3023d3464f9eb798459509719bed765c10 (diff)
downloadmeta-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 'recipes-core/jamvm/jamvm/jamvm-jni_h-noinst.patch')
0 files changed, 0 insertions, 0 deletions