Currently, when passing --with-binutils-src, binutils is built in the source 
tree. That leads to conflicting targets when compiling for different 
architectures (ex: amd64 on the host, and riscv64 or aarch64 for the target) 
from the same jdk source tree.

The simplest solution is to build binutils out-of-tree and into the 
build/<target>/binutils folder. These out-of-tree builds are already supported 
by binutils and only require some changes in the way we invoke the 
binutils/configure command.

-------------

Commit messages:
 - 8295262: Build binutils out of source tree

Changes: https://git.openjdk.org/jdk/pull/10689/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10689&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8295262
  Stats: 32 lines in 2 files changed: 18 ins; 2 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/10689.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10689/head:pull/10689

PR: https://git.openjdk.org/jdk/pull/10689

Reply via email to