From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 30 18:01:17 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F7E11065677; Wed, 30 Mar 2011 18:01:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id D2E108FC1A; Wed, 30 Mar 2011 18:01:16 +0000 (UTC) Received: from warner-losh.int.fusionio.com (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id p2UHsEK3032553; Wed, 30 Mar 2011 11:54:15 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <4D934AF4.9080503@FreeBSD.org> Date: Wed, 30 Mar 2011 11:54:14 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4D934AF4.9080503@FreeBSD.org> To: Dimitry Andric X-Mailer: Apple Mail (2.1082) Cc: mdf@freebsd.org, freebsd-hackers Subject: Re: Include file search path X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 18:01:17 -0000 On Mar 30, 2011, at 9:23 AM, Dimitry Andric wrote: > This is a rather nasty hack, though. If we can make it work, we = should > probably try using --sysroot instead, or alternatively, -nostdinc and > adding include dirs by hand. The same for executable and library = search > paths, although I am not sure if there is a way to completely reset > those with the current options. I'm pretty sure that the origins of this hack pre-dates the -sysroot = feature in gcc. It works in -current and has for years, so nobody has = cared enough to even contemplate changing it. If you can make the sysroot feature work, that would be great, since = that would allow us to skip the compiler building phase if we were = building using external compilers. I have some patches to make that = work, but this very problem is what I'd worked my way up to. It works = well if you are building current on current, but not so well if you are = mixing versions (you can mix architectures if you are using the xdev = feature I put in a while ago, but even that has one or two niggles I = need to iron out). Warner