From owner-freebsd-current@FreeBSD.ORG Tue Aug 17 14:21:18 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 D44981065670 for ; Tue, 17 Aug 2010 14:21:18 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 980948FC17 for ; Tue, 17 Aug 2010 14:21:18 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:2911:19d3:9b0d:9343] (unknown [IPv6:2001:7b8:3a7:0:2911:19d3:9b0d:9343]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E8C595C59; Tue, 17 Aug 2010 16:21:17 +0200 (CEST) Message-ID: <4C6A9AE7.3060704@andric.com> Date: Tue, 17 Aug 2010 16:21:27 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.9pre) Gecko/20100814 Lanikai/3.1.3pre MIME-Version: 1.0 To: Alexander Kabaev References: <4C6A7357.8000606@andric.com> <20100817091515.4510ebfd@kan.dnsalias.net> In-Reply-To: <20100817091515.4510ebfd@kan.dnsalias.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Tue, 17 Aug 2010 14:21:18 -0000 On 2010-08-17 15:15, Alexander Kabaev wrote: > Dimitry Andric wrote: ... >> 1) The "isysroot" method: build a regular version of clang, and make >> sure WMAKEENV contains something like: >> >> CC="${CC} -isysroot ${WORLDTMP} -B${WORLDTMP}/usr/lib/ \ >> -L${WORLDTMP}/usr/lib/" >> >> 2) The "tools-prefix" method: build a special version of clang, that >> has its default search paths for headers, startup objects and >> libraries modified, to look for everything under ${WORLDTMP}. ... > 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. 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. :) 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.