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)
committerRISCi_ATOM <bob@bobcall.me>
Mon, 23 Dec 2019 17:16:25 +0000 (12:16 -0500)
commit195e0a9a6fe6981576fef34b7d15c7236f1e9908
treeb2c61382ae48e28d5f202b71020e6232db0fce3c
parent70b57a848de0db684903a38fe2b3834186a19fbe
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]