On 10/9/07, Helmut Jarausch <[EMAIL PROTECTED]> wrote:

> Thanks,
> but what value of CHOST should I take?
> I currently have
> CHOST="i686-pc-linux-gnu"
> and gcc-4.1.2 is the standard C-compiler.
> Now, I'd like to switch to gcc-4.2.1.

There is an official guide to upgrading gcc
http://www.gentoo.org/doc/e <http://www.gentoo.org/doc/en/gcc-upgrading.xml>
n/gcc-upgrading.xml <http://www.gentoo.org/doc/en/gcc-upgrading.xml>

Since you are already at version 4 it looks like you'll need to do the
following:

# emerge -uav gcc

(Please substitute "i686-pc-linux-gnu-4.1.1" with the GCC
version and CHOST settings you've upgraded to:)
# gcc-config i686-pc-linux-gnu-4.1.1
# env-update && source /etc/profile

(Rebuilding libtool)
# emerge --oneshot -av libtool

The authors of the guide also recommend

# emerge -eav system
# emerge -eav world

It must be the env-update && source /etc/profile that keeps your new
settings

Regards,
dsitsolutions

Reply via email to