Gentoo Archives: gentoo-user

From: Dale <teendale@×××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to properly change CFLAGS ?
Date: Tue, 22 Aug 2006 19:00:48
Message-Id: 44EB52FF.50408@vista-express.com
In Reply to: Re: [gentoo-user] How to properly change CFLAGS ? by Adrian Frith
1 Adrian Frith wrote:
2 > On Tue, 2006-08-22 at 16:12 +0200, Alan Mckinnon wrote:
3 >
4 >> modify CFLAGS in /etc/make.conf
5 >> emerge -e system
6 >> emerge -s world
7 >>
8 >> This will rebuild your toolchain (gcc, glibc and friends) to use -O2
9 >> then rebuild the entire system, including the toolchain again, with -O2.
10 >> Your current compiler was built with -O3, and you want to rebuild the
11 >> system using a compiler compiled as -O2, hence the 2 step process.
12 >>
13 >
14 > Correct me if I am wrong, but doesn't the gcc ebuild in fact use the
15 > "make bootstrap" method of compiling gcc? - that is:
16 > 1. compile with installed compiler -> stage1
17 > 2. compile with stage1 compiler -> stage2
18 > 3. compile with stage2 compiler -> stage3
19 > 4. compare stage2 and stage3 and install stage3 if they are the same
20 >
21 > If I am right, doesn't it mean that the whole "emerge -e system" step is
22 > pointless? Couldn't one just do "emerge -u gcc" and then "emerge -e
23 > world"? Or am I being stupid?
24 >
25 > Cheers,
26 > Adrian
27 >
28 >
29
30 That would be my thinking too. Of course, I am wrong a lot too. ;-)
31
32 Dale
33
34 :-) :-)
35 --
36 gentoo-user@g.o mailing list