summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2021-02-07 20:16:16 +0100
committerFabian Groffen <grobian@gentoo.org>2021-02-07 20:16:16 +0100
commitfa910aedad94df79b9f4d3a322056c23230ca445 (patch)
tree2b21567205b6b7b72addb36fb13b4717a00beafe
parenttoolchain-funcs.eclass: handle arm64-macos in tc-tuple-is-softfloat (diff)
downloadprefix-fa910aedad94df79b9f4d3a322056c23230ca445.tar.gz
prefix-fa910aedad94df79b9f4d3a322056c23230ca445.tar.bz2
prefix-fa910aedad94df79b9f4d3a322056c23230ca445.zip
sys-devel/gcc-11: fix build on arm64-macos
Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--sys-devel/gcc/gcc-11_pre20200206.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-devel/gcc/gcc-11_pre20200206.ebuild b/sys-devel/gcc/gcc-11_pre20200206.ebuild
index 4db1e5c92f..e1bfc2eb77 100644
--- a/sys-devel/gcc/gcc-11_pre20200206.ebuild
+++ b/sys-devel/gcc/gcc-11_pre20200206.ebuild
@@ -47,6 +47,12 @@ src_prepare() {
sed -i -e 's|^ifeq (/usr/lib,|ifneq (/usr/lib,|' \
libgcc/config/t-slibgcc-darwin || die
fi
+
+ # fixup a what seems to be a typo, we need this at least to finish
+ # compilation on arm64-macos during bootstrap as gmp.h else won't be
+ # found
+ sed -i -e 's/ALL_SPPFLAGS/ALL_CPPFLAGS/' \
+ gcc/config/aarch64/t-aarch64 || die
}
src_configure() {