Gentoo Archives: gentoo-user

From: Dan Farrell <dan@×××××××××.cx>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: CFLAGS "...-O3 -pipe" vs "...O2 <no pipe>"
Date: Tue, 10 Apr 2007 21:39:55
Message-Id: 20070410160855.359bed3b@pascal.spore.ath.cx
In Reply to: Re: [gentoo-user] Re: CFLAGS "...-O3 -pipe" vs "...O2 " by Uwe Thiem
1 On Tue, 10 Apr 2007 20:45:04 +0100
2 Uwe Thiem <uwix@××××.na> wrote:
3
4 > O3 binaries are larger than O2 binaries but not that much. So if you
5 > are about to be out of HD space with O3 binaries you will soon be out
6 > of it with O2 binaries as well. You will need more HD space either
7 > way.
8 >
9 > That said, you can rebuild your system to be O2 by
10 > editing /etc/make.conf (O3 -> O2) and the "--newuse" option for
11 > emerge. I don't think it's worth it. ;-)
12 This thread contains a nice description of -02 -03 and -0s (size
13 optimization) which makes it clear that what is actually desired here
14 for space-saving concerns is -0s, not -03.
15
16 I for some reason run -03
17 on all my emerges and allow the ebuilds to sort out the maximum
18 acceptible optimization level. As far as I can tell, nothing's been
19 broken by that. I don't run testing or anything, and it _is_ more
20 dangerous, but I'm doing it without problems. For the record.
21
22 Finally, as people have already said, --newuse is to recompile when you
23 change your use flags. You want to rebuild the system and the world as
24 if none of the dependancies are already installed (so that they get
25 rebuilt too, even if not explicity a part of your world or system) and
26 the way to do that is -e (--emptytree). Doing so after changing from
27 -03 to -0s may actually save a decent amount of space. Furthermore, it
28 may actually perform pretty well too.
29 --
30 gentoo-user@g.o mailing list