Re: Do we have a CPUTYPE=native and/or generic stability problem?

From: Alexander Leidinger <Alexander_at_Leidinger.net>
Date: Sun, 4 Nov 2012 23:00:53 +0100
On Sun, 4 Nov 2012 14:43:30 +0100 Olivier Smedts <olivier_at_gid0.org>
wrote:

> Le dimanche 4 novembre 2012, Scot Hetzel a écrit :
> >
> > When you set CPUTYPE?=native, bsd.cpu.mk doesn't set MACHINE_CPU to
> > the correct values for your CPUTYPE.
> >
> 
> This comes regularly in the lists.

This basically means we need to do something about it.

> Try setting the correct CPUTYPE for your CPU, and if you want to use
> "native" somewhere, add "-march=native" to your CFLAGS. There's
> another option to use so that *.mk don't add another "-march" with
> your CPUTYPE automatically.

We either should bail out if someone uses native as CPUTYPE, or we
should make it just work. Personally I don't have a preference for one
or the other, important is that the user gets a behavior he can count
on.

Bye,
Alexander.

-- 
http://www.Leidinger.net    Alexander _at_ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild _at_ FreeBSD.org  : PGP ID = 72077137
Received on Sun Nov 04 2012 - 21:01:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:31 UTC