commit: a0944aafa313ec5c87a787f41f7ff7317a4b11d6 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Tue Jun 12 16:38:37 2018 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Tue Jun 12 16:38:37 2018 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a0944aaf
scripts/bootstrap-prefix: make FSF gcc the default compiler on ppc-macos We need (or want) more recent features and standards, and FSF gcc-7 works fine, so use that instead of Clang (which we can't get a recent version to compile). Because of sys-libs/csu doing some weird stuff, we really need gcc-apple for that, but that package got hacked to use it, the rest is all fine with gcc-7.3.0-r3. scripts/bootstrap-prefix.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index f39daf9b2e..8483a62149 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -197,7 +197,6 @@ configure_toolchain() { mycc=gcc ;; *"(GCC) 4.0.1 "*) - # need gcc-4.2.1 to compile llvm linker="=sys-devel/binutils-apple-3.2" compiler_stage1+=" ${gcc_deps} @@ -206,12 +205,17 @@ configure_toolchain() { sys-devel/binutils-apple" mycc=gcc ;; + *"(Gentoo "*) + # probably the result of a bootstrap in progress + linker=sys-devel/binutils-apple + mycc=gcc + ;; *) eerror "unknown compiler" return 1 ;; esac - compiler="${gcc_deps} sys-devel/gcc-config sys-devel/gcc-apple" + compiler="${gcc_deps} sys-devel/gcc-config sys-devel/gcc" ;; *-darwin*) # for compilers choice, see bug: