what "-march=" option should be used when building 64bits lfs

Stuart Stegall keltor at keltor.org
Sat Mar 19 21:43:18 PDT 2011

On Fri, Mar 18, 2011 at 10:54 PM, xinglp <xinglp at gmail.com> wrote:
> 2011/3/19 Stuart Stegall <keltor at keltor.org>:
>> On Fri, Mar 18, 2011 at 1:12 PM, xinglp <xinglp at gmail.com> wrote:
>>> "-march=i686" should be a common option for 32bits system. And I set
>>> to jhalfs's "jhalfs/optimize/opt_config.d/O3pipe_march".
>>> Then which option for 64bits.
>>> --
>>> code farmer from lanxiangjixiao
>>> --
>>> http://linuxfromscratch.org/mailman/listinfo/lfs-support
>>> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>>> Unsubscribe: See the above information page
>> -mtune=native will get you what you are looking for, but also take a look at:
> when build lfs with -mtune=native on a core2 machine. can I move it to
> amd platform?
>> http://en.gentoo-wiki.com/wiki/Safe_Cflags
> I can not open it.
> --
> code farmer from lanxiangjixiao

-mtune code should be runnable on all x86_64 machines.  -march
specifically will use newer sse code on floating point code, making
the code incompatible with procs that don't have the level of sse
(sse1/sse2 is supported on all of the x86_64 procs though)

More information about the lfs-support mailing list