Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2009 23:44:51 +0100
From:      =?ISO-8859-1?Q?Morgan_Wesstr=F6m?= <>
To:        FreeBSD Questions <>
Subject:   Re: default CFLAGS
Message-ID:  <>
In-Reply-To: <>
References:  <Pine.LNX.4.64.0901241734020.6296@localhost>	<>	<>	<>	<>	<>	<>	<>	<> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
RW wrote:
> On Sat, 24 Jan 2009 21:13:00 +0100
> Morgan Wesström <> wrote:
>> gcc 4.2 and later will figure out the correct -march and -mtune for
>> you automatically if you use CPUTYPE=native. 
> The point I was making before, is that CPUTYPE isn't just passed
> transparently to gcc, it's used for setting other variables, such as
> CFLAGS. So unless you know that CPUTYPE=native is supported by the OS as
> well as the compiler, you probably shouldn't use it in make.conf.

I got that point. As with all tuning you always take the risk of
breaking something but that is a personal choice. From my own experience
I prefer that the compiler choses the optimizations.
I don't know about the base OS but a quick grep through /usr/ports only
reveals 5 or 6 ports that actually checks CPUTYPE and they don't do much
more than setting -march={$CPUTYPE} which is pretty redundant.


Want to link to this message? Use this URL: <>