|
发表于 2004-12-8 01:12:05
|
显示全部楼层
最初由 athlon_r 发表
也就是说 在我的主目录下 建立 .profile文件
内容如下
==================
export CFLAGS="-pipe -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops"
export CXXFLAGS="-pipe -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -maccumulate-outgoing-args -minline-all-stringops -momit-leaf-frame-pointer -O3 -ffast-math -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -ftracer -funroll-loops -fno-rtti"
==========================
是这样吧...
CFLAGS和CXXFLAGS应该保持一致比較好,我试过用上面的参數,几台机器上,emerge很多都出错。我现在用的是这个:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
#CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" <<--为一些需要保守的軟件保留的
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O3 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j4" |
|