From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20917 invoked by alias); 1 Dec 2004 21:53:50 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 20902 invoked from network); 1 Dec 2004 21:53:46 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 1 Dec 2004 21:53:46 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CZcPt-0001di-VF; Wed, 01 Dec 2004 16:53:42 -0500 Date: Wed, 01 Dec 2004 21:53:00 -0000 From: Daniel Jacobowitz To: Hans-Peter Nilsson Cc: mrs@apple.com, gcc@gcc.gnu.org Subject: Re: RFC: Replace -isysroot with --sysroot? Message-ID: <20041201215341.GA6248@nevyn.them.org> Mail-Followup-To: Hans-Peter Nilsson , mrs@apple.com, gcc@gcc.gnu.org References: <78791A4E-DECE-4A88-8097-0AAB6CD99FE1@apple.com> <200412012134.iB1LY8rx001143@ignucius.se.axis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412012134.iB1LY8rx001143@ignucius.se.axis.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-12/txt/msg00097.txt.bz2 On Wed, Dec 01, 2004 at 10:34:08PM +0100, Hans-Peter Nilsson wrote: > > From: Mike Stump > > Date: Wed, 1 Dec 2004 12:27:17 -0800 > > On Dec 1, 2004, at 10:20 AM, Hans-Peter Nilsson wrote: > > > So, can we add --sysroot, to affect the search paths as the > > > configure-option --with-sysroot=... does, but as a compile-time > > > option. > > > > How is this different than what we already do when the compiler is run > > from an alternate place? > > I'm reading your question differently this time so I'm answering > again. :-) > > Aside from the conceptual difference, the actual difference > would be that the suggested --sysroot= only affects the > target-specific bits, i.e. not cc1 and other host-executables. Also, note that we relocate the sysroot when we detect that the compiler has been moved - but only if the sysroot was inside the original prefix, which sometimes it isn't. -- Daniel Jacobowitz