commit:     d7279964558064987ebc8fee5120bc15d1b8db3d
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  4 19:52:19 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jan  4 19:57:33 2019 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d7279964

scripts/bootstrap-prefix: bootstrap with older GCC when using older GCC

GCC-4.7 cannot be compiled with GCC-3, bootstrap with GCC-4.2 for that.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 scripts/bootstrap-prefix.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 9f4f1bbb38..6703edcc33 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -172,8 +172,10 @@ configure_toolchain() {
          eval $( (gcc -E - | grep compiler_stage1) <<-EOP
                #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && 
__GNUC_MINOR__ > 7))
                  compiler_stage1+=" sys-devel/gcc"
-               #else
+               #elif defined(__GNUC__) && __GNUC__ >= 4
                  compiler_stage1+=" <sys-devel/gcc-4.8"
+               #else
+                 compiler_stage1+=" <sys-devel/gcc-4.7"
                #endif
                EOP
          )

Reply via email to