Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compile certain packages with -03, others with -02?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
flywheelbot
n00b
n00b


Joined: 12 Feb 2006
Posts: 12
Location: United States

PostPosted: Tue Sep 12, 2006 5:10 pm    Post subject: Compile certain packages with -03, others with -02? Reply with quote

I know the debate goes on as to if 03 is worth it or not--I'm not interested in all my binaries being larger, but for certain applications that I use regularly, I'd like to compile them (and their dependancies if necessary) with 03.

Is it possible to specify (like package.use?) that only certain packages should compile with -03 and others with -02?

Thanks!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Tue Sep 12, 2006 6:41 pm    Post subject: Reply with quote

flywheelbot,

Per package CFLAGS are not supported yet. I know there is some work being done on it but I have no idea of timescales.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
flywheelbot
n00b
n00b


Joined: 12 Feb 2006
Posts: 12
Location: United States

PostPosted: Tue Sep 12, 2006 6:53 pm    Post subject: Reply with quote

Thanks--I figured it wouldn't be as simple as the package.use yet.

I saw in the gentoo wiki:
Quote:

It is very easy to get a system built using -O3 instead of -O2. A lot of packages that break with -O3 already replace the flag with -O2


at http://gentoo-wiki.com/CFLAGS

So, obviously some packages 'know' to step to -O2 from -O3 somewhere in the ebuild.

Again, the performance gains would probably be marginal at best--but for applications that I load only once, and use often (say, firefox, thunderbird, kdevelop), I wouldn't mind a slightly longer load time for any speed increase I can get.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Tue Sep 12, 2006 7:02 pm    Post subject: Reply with quote

Moved from Documentation, Tips & Tricks to Duplicate Threads, please see one of the various topics on this issue:

/etc/portage/package.c{,xx}flags features - v1.0_rc1
distclean and per package CFLAGS in portage...
[tool]portage-bashrc-ng - modular portage's bashrc

Please don't post support questions in Documentation, Tips and Tricks, see its forum description.
_________________
KDE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum