Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/make.conf CFLAGS setting and package building
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Jon Wilder
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2011
Posts: 112
Location: Fresno CA

PostPosted: Tue Apr 19, 2011 10:16 pm    Post subject: /etc/make.conf CFLAGS setting and package building Reply with quote

So as I'm getting more familiar with Gentoo I just remembered that I was supposed to set my CFLAGS to CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" to get all my packages to compile to my specific CPU rather than compile generic code with the -march=i686 generic CFLAGS setting. This means that everything I've installed from the kernel to KDE and all the extra packages I installed with it were compiled with the generic CFLAGS="-march=i686" setting. Does this mean that I'll have to go through and rebuild everything on my entire system in order for all my packages to be built/compiled to my specific CPU? If so, what all is involved with doing this?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Tue Apr 19, 2011 11:23 pm    Post subject: Reply with quote

You'll need to rebuild anything merged before the changes to your make.conf, yes.

You can do this either a) step by step, merging the applications when they'll get version bumped or b) recompile everything directly.

If you'll opt for (b),
Code:
emerge glibc binutils util-linux gcc ; env-update && source /etc/profile ; emerge -e world
would do that - depending on your system, that may take a long time, though.

Edit, just to be sure, make sure the CFLAGS you stated do really represent your system!
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
Jon Wilder
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2011
Posts: 112
Location: Fresno CA

PostPosted: Wed Apr 20, 2011 2:55 am    Post subject: Reply with quote

avx wrote:
You'll need to rebuild anything merged before the changes to your make.conf, yes.

You can do this either a) step by step, merging the applications when they'll get version bumped or b) recompile everything directly.

If you'll opt for (b),
Code:
emerge glibc binutils util-linux gcc ; env-update && source /etc/profile ; emerge -e world
would do that - depending on your system, that may take a long time, though.

Edit, just to be sure, make sure the CFLAGS you stated do really represent your system!


My processor is an AMD Athlon XP 2500+. Here are my current CFLAGS settings -

CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"

This should be correct?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Wed Apr 20, 2011 4:00 am    Post subject: Reply with quote

Quote:
This should be correct?
Yes, these flags are ok.

(If you've got special needs, you could read up on what's possible with other flags, but they can be risky, if you don't know/understand what they are doing.)
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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