gecko-dev/build/unix/build-binutils
Mike Hommey aeac69533b Bug 1540882 - Align binutils aarch64 target with build time clang --target. r=froydnj
When cross-building with clang, we use `--target` with a target that is
derived from the configure target, with the vendor removed. So for
`configure --target=aarch64-unknown-linux-gnu`, we use
`clang --target=aarch64-linux-gnu`.

Then, clang itself looks for tools as `$target-$tool` first, then
`$tool`, which means for the assembler,  it's looking for
`aarch64-linux-gnu-as` before `as`, but not
`aarch64-unknown-linux-gnu-as`.

Building GNU as with `--target=aarch64-unknown-linux-gnu` creates the
`aarch64-unknown-linux-gnu-as`, but we really want `aarch64-linux-gnu`,
so we adjust the target in the binutils build script.

Differential Revision: https://phabricator.services.mozilla.com/D25684

--HG--
extra : moz-landing-system : lando
2019-04-02 13:50:54 +00:00
..
3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F.key Bug 1482268 - Upgrade binutils for clang builds to 2.31.1. r=froydnj 2018-08-31 21:49:12 +00:00
build-binutils.sh Bug 1540882 - Align binutils aarch64 target with build time clang --target. r=froydnj 2019-04-02 13:50:54 +00:00