euglug.org

[Eug-lug] gentoo and moving to new hardware

작성자

카테고리:



Bob MillerTue Jun 1 20:14:47 PDT 2004

Rob Hudson wrote:

> I've got a gentoo system up on an Athlon 1GHz machine.  I plan on moving
> the hard drive to an Athlon XP 2600 (or so).  I'm using these settings
> in my make.conf:
> 
>     CFLAGS="-O2 -mcpu=athlon -fomit-frame-pointer"
>     CHOST="i686-pc-linux-gnu"
> 
> Will I have to recompile or will those settings work for Athlon XPs also?

In general, settings that work on an older CPU will work on a newer
CPU of the same family.  In specific, I'm pretty sure those settings
will work on your Athlon XP.

To find out the currently preferred CFLAGS for your box, do this.

	# emerge genflags
	# /usr/sbin/info2flags
	CHOST="i686-pc-linux-gnu"
	CFLAGS="-march=pentium4 -O3 -pipe"
	CXXFLAGS="-march=pentium4 -O3 -pipe"

You can copy the variables into /etc/make.conf and as you update your
system, more and more of it will become optimized for your new box.

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     kbob at jogger-egg.com