On Fri, Aug 16, 2013 at 03:18:35PM -0300, Francisco Ares wrote
I have the following in make.conf
> You were right. I have overlooked the type of the new machine's CPU (it is
> a "Pentium(R) Dual-Core CPU" and the other one, already working, is a
> "Intel(R) Core(TM)2 Duo CPU"). So, a "march=nocona" instead of a
> "march=core2" seems to have solved the problem.
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"
CXXFLAGS="${CFLAGS}"
...where "-march=native" will always work correctly for a local build.
The only possible worry is if you're cross-compiling and or distributing
a binary to multiple machines. It also saves me the headache of
figuring out the CFLAGS setting whenever I get a new machine. You still
have to set up the correct processor in the kernel, however.
--
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications