toolchain/gcc: Backport patch to fix unconditional MULTIARCH_DIRNAME
authorJeffery To <jeffery.to@gmail.com>
Mon, 18 Nov 2019 22:04:59 +0000 (06:04 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 22 Dec 2019 23:31:20 +0000 (00:31 +0100)
commitd2e87c780089a74b6c0ad84e21f73021fb5ec27a
tree34414094a9ebe24a85b4326264faeec998ade289
parenta7d880e830cf786941c14f5fd410a7e918ffcb5d
toolchain/gcc: Backport patch to fix unconditional MULTIARCH_DIRNAME

This backports the patch for GCC PR target/89587 (gcc's rs6000
configuration unconditionally sets MULTIARCH_DIRNAME, even when
multiarch is disabled).

This currently affects apm821xx and may cause issues when
cross-compiling packages, e.g. Python 3[1].

This includes patches for GCC 8 (with the changelog diff removed);
this change is already included in GCC 9.2 and 7.5.

[1]: https://github.com/openwrt/packages/issues/10552

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
[Removed patch for GCC 7.4.0, GCC 7.5.0 already contains this]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit c102f702e7dc976c2ad2c04c0ce4462373e62365)
toolchain/gcc/patches/8.3.0/090-rs6000-PR-89587.patch [new file with mode: 0644]