1 |
On Thu, 2 Apr 2020 12:52:13 +0200 |
2 |
Alfredo Tupone <tupone@g.o> wrote: |
3 |
|
4 |
> + # Do not set ADAFLAGS to build the compiler |
5 |
> + unset ADAFLAGS |
6 |
|
7 |
Can you clarify in a comment why it's done? |
8 |
|
9 |
> # Older gcc versions did not detect bash and re-exec itself, so force the |
10 |
> # use of bash. Newer ones will auto-detect, but this is not harmful. |
11 |
> # This needs to be set for compile as well, as it's used in libtool |
12 |
> # generation, which will break install otherwise (at least in 3.3.6): #664486 |
13 |
> CONFIG_SHELL="${EPREFIX}/bin/bash" \ |
14 |
> gcc_do_make ${GCC_MAKE_TARGET} |
15 |
|
16 |
> + if use ada; then |
17 |
> + gcc_do_make "-C gcc gnatlib-shared" |
18 |
> + ln -s gcc ../build/prev-gcc || die |
19 |
> + ln -s ${CHOST} ../build/prev-${CHOST} || die |
20 |
> + gcc_do_make "-C gcc gnattools" |
21 |
> + fi |
22 |
|
23 |
Two points: |
24 |
1. You probably still need CONFIG_SHELL="${EPREFIX}/bin/bash" passed. |
25 |
2. Can you add an inline comment why it's needed? Why 'make' does not Just Work? |
26 |
|
27 |
-- |
28 |
|
29 |
Sergei |