From owner-freebsd-current@FreeBSD.ORG Sat Jun 5 18:43:46 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1EC6106566B for ; Sat, 5 Jun 2010 18:43:46 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 7488A8FC14 for ; Sat, 5 Jun 2010 18:43:46 +0000 (UTC) Received: (qmail 7285 invoked by uid 399); 5 Jun 2010 18:43:45 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 5 Jun 2010 18:43:45 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4C0A9AE0.7050408@FreeBSD.org> Date: Sat, 05 Jun 2010 11:43:44 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: Anonymous References: <20100604152605.GA80277@freebsd.org> <4C0930E3.3030301@FreeBSD.org> <4C093D60.1010008@FreeBSD.org> <4C099C93.8050709@FreeBSD.org> <4C09D5F7.1050901@FreeBSD.org> <861vcm6mdd.fsf@gmail.com> In-Reply-To: <861vcm6mdd.fsf@gmail.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Roman Divacky , current@freebsd.org, =?UTF-8?B?QW5kcml1cyBNb3JrxatuYXM=?= Subject: Re: [INFO]: import of clang/LLVM to happen on June 9th X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2010 18:43:47 -0000 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/