Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Jun 2010 11:43:44 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Anonymous <swell.k@gmail.com>
Cc:        Roman Divacky <rdivacky@freebsd.org>, current@freebsd.org, =?UTF-8?B?QW5kcml1cyBNb3JrxatuYXM=?= <hinokind@gmail.com>
Subject:   Re: [INFO]: import of clang/LLVM to happen on June 9th
Message-ID:  <4C0A9AE0.7050408@FreeBSD.org>
In-Reply-To: <861vcm6mdd.fsf@gmail.com>
References:  <20100604152605.GA80277@freebsd.org>	<4C0930E3.3030301@FreeBSD.org> <op.vdsd81uu43o42p@klevas>	<4C093D60.1010008@FreeBSD.org> <op.vdsf92ux43o42p@klevas>	<4C099C93.8050709@FreeBSD.org> <4C09D5F7.1050901@FreeBSD.org> <861vcm6mdd.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/04/10 23:10, Anonymous wrote:
> Most ports decide features based on MACHINE_CPU not CPUTYPE. However,
> MACHINE_CPU doesn't support non-base compiler and `native' CPUTYPE. Plus
> core2 CPUTYPE is silently degraded to nocona/prescott even when it's
> supported by underlying compiler. See conf/112997.
>
> IIRC, on gcc44+ -march=native automatically enables -msse[1234].
> But if you don't want to use CPUTYPE=native then add cc1 flags to
> CFLAGS, e.g.

Ok, CPUTYPE=native seems to be doing the trick, thanks!

BTW, the suggestion in the web page (CFLAGS+=-mssse3) gives an "unknown 
option" error. Perhaps it would be better to add CPUTYPE=native to the 
defaults in section 3.1, and use a different example in 3.3?

Doug

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/custom-gcc/configuring-ports-gcc.html

-- 

	... and that's just a little bit of history repeating.
			-- Propellerheads

	Improve the effectiveness of your Internet presence with
	a domain name makeover!    http://SupersetSolutions.com/




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