commit:     eaf5de24641209a71fdbe9d909a323c17e1d5c3b
Author:     Michael Haubenwallner <michael.haubenwallner <AT> ssi-schaefer 
<DOT> com>
AuthorDate: Wed Apr 13 14:06:52 2016 +0000
Commit:     Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Wed Apr 13 14:06:52 2016 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=eaf5de24

use newest gcc for Cygwin, not supported in gcc-4.7

 scripts/bootstrap-prefix.sh | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index fbd9898..d1570d4 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -147,8 +147,16 @@ configure_toolchain() {
        linker=sys-devel/binutils
        local gcc_deps="dev-libs/gmp dev-libs/mpfr dev-libs/mpc"
        compiler="${gcc_deps} sys-devel/gcc-config sys-devel/gcc"
-       # The host may not have a functioning c++ toolchain, so use a stage1 
compiler that can build with C only.
-       compiler_stage1="${gcc_deps} sys-devel/gcc-config <sys-devel/gcc-4.8"
+       compiler_stage1="${gcc_deps} sys-devel/gcc-config"
+       case ${CHOST} in
+       *-cygwin*)
+         # not supported in gcc-4.7 yet, easy enough to install g++
+         compiler_stage1+=" sys-devel/gcc"
+         ;;
+       *)
+         # The host may not have a functioning c++ toolchain, so use a stage1 
compiler that can build with C only.
+         compiler_stage1+=" <sys-devel/gcc-4.8"
+       esac
 
        CC=gcc
        CXX=g++

Reply via email to