1 |
commit: d7279964558064987ebc8fee5120bc15d1b8db3d |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 4 19:52:19 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 4 19:57:33 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d7279964 |
7 |
|
8 |
scripts/bootstrap-prefix: bootstrap with older GCC when using older GCC |
9 |
|
10 |
GCC-4.7 cannot be compiled with GCC-3, bootstrap with GCC-4.2 for that. |
11 |
|
12 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
13 |
|
14 |
scripts/bootstrap-prefix.sh | 4 +++- |
15 |
1 file changed, 3 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh |
18 |
index 9f4f1bbb38..6703edcc33 100755 |
19 |
--- a/scripts/bootstrap-prefix.sh |
20 |
+++ b/scripts/bootstrap-prefix.sh |
21 |
@@ -172,8 +172,10 @@ configure_toolchain() { |
22 |
eval $( (gcc -E - | grep compiler_stage1) <<-EOP |
23 |
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7)) |
24 |
compiler_stage1+=" sys-devel/gcc" |
25 |
- #else |
26 |
+ #elif defined(__GNUC__) && __GNUC__ >= 4 |
27 |
compiler_stage1+=" <sys-devel/gcc-4.8" |
28 |
+ #else |
29 |
+ compiler_stage1+=" <sys-devel/gcc-4.7" |
30 |
#endif |
31 |
EOP |
32 |
) |