View previous topic :: View next topic |
Author |
Message |
Zee Apprentice
Joined: 10 Jan 2004 Posts: 213 Location: Podgrad, Slovenia
|
Posted: Fri Jan 21, 2005 5:24 pm Post subject: [SOLVED]: NewGCC, recompile everything question |
|
|
Hi.
I would like to install a new version so that I could take advantage of the -march=pentium-m setting. Consequently that means recompiling everything.
How do I do this?
I've already fetched version GCC 3.4.1. What's next? How do I prevent emerge from "downgrading" to the old version od GCC?
thanks in advance.
regards,
zee
Last edited by Zee on Fri Jan 21, 2005 7:19 pm; edited 1 time in total |
|
Back to top |
|
|
r00tzz Apprentice
Joined: 09 Apr 2004 Posts: 203 Location: Sao Paulo, Brasil
|
Posted: Fri Jan 21, 2005 5:32 pm Post subject: |
|
|
it'll not downgrade, unless gentoo devs think it is necessary.
to recompile everything with the new gcc try this:
Code: | #emerge -e system && emerge -e system && emerge -e world && emerge -e world |
as sugested in this post |
|
Back to top |
|
|
Voltago Advocate
Joined: 02 Sep 2003 Posts: 2593 Location: userland
|
Posted: Fri Jan 21, 2005 5:35 pm Post subject: |
|
|
Hi!
First off, if you just upgraded from gcc-3.3.x, you really don't need to recompile everything, as the performace advantages - if any - will not be noticeable.
But anyway, first list the installed compilers:
The active compiler is marked with an asterisk. To switch active compiler, do
Code: | gcc-config N
env-update
source /etc/profile |
where N is the number in front of the compiler you want to use. Now you're set up to use the new compiler and can re-emerge everyting:
EDIT: The command line in the post above is for the thoroughly paranoid |
|
Back to top |
|
|
r00tzz Apprentice
Joined: 09 Apr 2004 Posts: 203 Location: Sao Paulo, Brasil
|
Posted: Fri Jan 21, 2005 5:52 pm Post subject: |
|
|
Voltago wrote: |
EDIT: The command line in the post above is for the thoroughly paranoid |
I agree, but he said he wanted everything comile using gcc 3.4, so let's compile everything right !! |
|
Back to top |
|
|
Zee Apprentice
Joined: 10 Jan 2004 Posts: 213 Location: Podgrad, Slovenia
|
Posted: Fri Jan 21, 2005 6:16 pm Post subject: |
|
|
It's recompiling. It might take a while. Because it's a notebook we're talking about.
Big thanks to all.
zee |
|
Back to top |
|
|
|