This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Replace -isysroot with --sysroot?
On Wed, Dec 01, 2004 at 10:34:08PM +0100, Hans-Peter Nilsson wrote:
> > From: Mike Stump <mrs@apple.com>
> > 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