From owner-freebsd-current@FreeBSD.ORG Wed Aug 18 09:15:55 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 15DCB1065698 for ; Wed, 18 Aug 2010 09:15:55 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id CDDEF8FC13 for ; Wed, 18 Aug 2010 09:15:54 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id D5A481FFC34; Wed, 18 Aug 2010 09:15:52 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id B1FD38454E; Wed, 18 Aug 2010 11:15:51 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Dimitry Andric References: <4C6A7357.8000606@andric.com> <20100817091515.4510ebfd@kan.dnsalias.net> <4C6A9AE7.3060704@andric.com> Date: Wed, 18 Aug 2010 11:15:51 +0200 In-Reply-To: <4C6A9AE7.3060704@andric.com> (Dimitry Andric's message of "Tue, 17 Aug 2010 16:21:27 +0200") Message-ID: <86aaokb7so.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: Building world with clang 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: Wed, 18 Aug 2010 09:15:55 -0000 Dimitry Andric writes: > Alexander Kabaev writes: > > Does method 1) work fine with 'make buildenv'? I doubt that. I would > > strongly suggest we should not lose this feature. I do not like the > > idea of having to depend on -isystem in CFLAGS in such an environment.= =20 > I have not tested make buildenv with this method, but since ${CC} is > modified, not ${CFLAGS}, there is a reasonable chance that it might > work. :) I'm not a big fan of "reasonable chances" when it comes to the toolchain. > Note a similar method is already being using for the build32 stage on > amd64, where ${CC} has a bunch of flags (including -isystem, -L and -B) > appended. No, what is used is a variant of method 1 *on top of* method 2 for a very specific case. You need "a special version of clang" (method 2) anyway to support cross-building. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no