1 |
On 2017-10-10 21:16, Andreas K. Huettel wrote: |
2 |
> … |
3 |
> Switching involves the following steps: |
4 |
> If not already done, |
5 |
> * Use gcc-config to select gcc-6.4.0 (or later) as system compiler |
6 |
> * Re-source /etc/profile: |
7 |
> . /etc/profile |
8 |
> * Re-emerge libtool |
9 |
|
10 |
Should probably instruct users to upgrade all packages first because it |
11 |
can be, as I’ve experienced, nearly impossible to upgrade GCC if the |
12 |
world isn’t up to the latest stable. |
13 |
|
14 |
An ‘emerge -avuDN world’ should do the trick as a first step. |
15 |
|
16 |
> Then, |
17 |
> * Select the new profile with eselect |
18 |
> * Re-emerge, in this sequence, the selected gcc, binutils, and glibc |
19 |
> emerge -1 sys-devel/gcc:6.4.0 |
20 |
> emerge -1 sys-devel/binutils |
21 |
> emerge -1 sys-libs/glibc |
22 |
|
23 |
Some of these can take a while. Maybe we want to spell it out: |
24 |
|
25 |
for p in sys-devel/gcc:6.4.0 sys-devel/binutils sys-libs/glibc; do |
26 |
emerge -1 $p || break |
27 |
done |