Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Mar 2011 16:20:30 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Alexander Best <arundel@freebsd.org>
Cc:        George Liaskos <geo.liaskos@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: r219385 build error.
Message-ID:  <4D75764E.10108@FreeBSD.org>
In-Reply-To: <20110307225652.GA61509@freebsd.org>
References:  <AANLkTikc-Z9mjmQ7EWnWdqz297hHQ_Kt2k9z05FaNv-y@mail.gmail.com>	<20110307205957.GA47557@freebsd.org>	<AANLkTimJpsr=38UPswCXUmajNixTs1qS-8FxT36xAK4V@mail.gmail.com>	<20110307214935.GA53914@freebsd.org>	<AANLkTinfQv3y0yohB4qtRL9JOktqa76SvB%2Bw0WpEzAXh@mail.gmail.com> <20110307225652.GA61509@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/07/2011 14:56, Alexander Best wrote:
> "native" doesn't get handled by bsd.cpu.mk at all! it gets passed to gcc
> directly and gcc choses -m{tune,arch} on it's own.
>
> don't add -march=* directly to CFLAGS. this is bound to go wrong at some
> point. use CPUTYPE to set the cpu and CFLAGS for -O*, -pipe, etc.
>
> also please keep in mind that the optimisations that can be achieved by
> finetuning make.conf are rather minor. some people think that with
> cflags and cpu juju they can boost the OS. i don't believe that's true. the
> chances are much greater that you're adding a problematic switch and end up
> with binaries during installworld that segfault. so it's not really worth
> getting into this kinda trouble just for the sake of optimisation.
>
> a simple
>
> CPUTYPE ?= native
> COPTFLAGS = -O0 -pipe
> CFLAGS = -O2 -pipe
>
> should be close to perfekt.;)

Does any of this pertain to clang?


Doug

-- 

	Nothin' ever doesn't change, but nothin' changes much.
			-- OK Go

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D75764E.10108>