|
发表于 2005-8-1 21:34:49
|
显示全部楼层
先看官方文档啊--说的很清啊。k8
What CFLAGS should I use for AMD64/EM64T?
You should use simple CFLAGS to avoid future problems with your system. For example, you should use CFLAGS="-march=k8 -O2 -pipe" for Athlon64 or Opteron and CFLAGS="-march=nocona -O2 -pipe" for a EM64T processor. If you plan to use a 32-bit chroot, you should use CFLAGS="-march=athlon-xp -O2 -pipe -msse2" for a AMD64 processor; for a EM64T, you should use CFLAGS="-march=pentium4 -O2 -pipe" inside the chroot.
Note: -march=k8 is the same as -march=athlon64 and -march=opteron.
Warning: You should never place -fPIC, -m32 or -m64 in your CFLAGS. They are automatically added whenever they are needed. Please also note that the -Os flag is currently not supported. |
|