View previous topic :: View next topic |
Author |
Message |
Jon Wilder Tux's lil' helper
Joined: 04 Apr 2011 Posts: 112 Location: Fresno CA
|
Posted: Tue Apr 19, 2011 10:16 pm Post subject: /etc/make.conf CFLAGS setting and package building |
|
|
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 |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Tue Apr 19, 2011 11:23 pm Post subject: |
|
|
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 |
|
|
Jon Wilder Tux's lil' helper
Joined: 04 Apr 2011 Posts: 112 Location: Fresno CA
|
Posted: Wed Apr 20, 2011 2:55 am Post subject: |
|
|
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 |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Wed Apr 20, 2011 4:00 am Post subject: |
|
|
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 |
|
|
|