From owner-freebsd-current@FreeBSD.ORG Tue Aug 17 13:47:04 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 5CC361065695 for ; Tue, 17 Aug 2010 13:47:04 +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 1F0D58FC14 for ; Tue, 17 Aug 2010 13:47:04 +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 616B75C59; Tue, 17 Aug 2010 15:47:03 +0200 (CEST) Message-ID: <4C6A92E0.4050104@andric.com> Date: Tue, 17 Aug 2010 15:47:12 +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: Daniel Nebdal References: <4C6A7357.8000606@andric.com> <19F5467B-6432-4531-BF04-62D8EB4F3093@gid.co.uk> In-Reply-To: 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 13:47:04 -0000 On 2010-08-17 15:03, Daniel Nebdal wrote: >>> However, a disadvantage is that the built-in search paths of the >>> bootstrap compiler are not entirely disabled by using the -isysroot, -B >>> and -L flags, ... > For clarification, did you (Dimitry, that is) mean > a) The paths are still there so they could resurface if some Makefile > doesn't specify those flags , or > b) they sometimes come into play even when using the appropriate flags? Any sub-makefiles would not have to specify those flags explicitly, since they were added to ${CC} and ${CXX}. But what I meant is that even if you specify those flags, the compiler still searches for headers and libraries in the base system. So if some header is removed from /usr/src, for example, but is still available in /usr/include, it can be erroneously picked up during buildworld.