diff options
author | Fabian Groffen <grobian@gentoo.org> | 2018-06-12 18:38:37 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2018-06-12 18:38:37 +0200 |
commit | a0944aafa313ec5c87a787f41f7ff7317a4b11d6 (patch) | |
tree | a433ab0969c994f2761883af7da6a7dc834444ed | |
parent | scripts/bootstrap-prefix: clear resume list at end of stage3 (diff) | |
download | prefix-a0944aafa313ec5c87a787f41f7ff7317a4b11d6.tar.gz prefix-a0944aafa313ec5c87a787f41f7ff7317a4b11d6.tar.bz2 prefix-a0944aafa313ec5c87a787f41f7ff7317a4b11d6.zip |
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.
-rwxr-xr-x | scripts/bootstrap-prefix.sh | 8 |
1 files 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: |