2013/8/17 Michael Palimaka <kensing...@gentoo.org>

> On 17/08/2013 08:38, Walter Dnes wrote:
>
>>
>>    I have the following in make.conf
>>
>> 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.
>>
>>
> While -march=native is generally good advice, GCC is not perfect and on
> occasion it can flags to be enabled that are not supported, resulting in
> the invalid instruction error.
>
>
>
Thanks, that is a good point to be aware of.

Francisco

Reply via email to