On 04/06/09 11:56, Nikos Chantziaras wrote:
[snip]
~adj~
I just notice that there is a problem with CFLAGS -march=native on AMD64
I recompile my system using this new flag and have a lot of problems. an
examples new xorg-server-1.5... would not compile, I switch back to my
previous settings:
-march=athlon64 and it compiled on first pass.
So, now I'm recompiling the system with my old flag: -march=athlon64 :-/
-march=native is only useful if you don't know what to use. I guess most
Gentoo users do know what to use. Why should I use "native" if I know that
my CPU is "athlon64" :P
Well, according to gentoo recommendations it is not so:
http://en.gentoo-wiki.com/wiki/Safe_Cflags
"...GCC 4.2 introduces a new -march option, -march=native, which automatically detects the features your CPU supports and sets the options appropriately.
If you have an Intel or AMD CPU and are using >=sys-devel/gcc-4.2.3, using -march=native is recommended...."
So, I suggest you make a correction to gentoo-wiki, as I suspect I'll will not
be the only one who get confused by it :-/
--
Joseph