RFC: Replace -isysroot with --sysroot?
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Wed Dec 1 20:43:00 GMT 2004
> 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.
(I missed a question mark)
> How is this different than what we already do when the compiler is run
> from an alternate place?
Not very different at all, except that you don't need to move
the compiler et al to the place where you have headers and
libraries. But I'd rather compare the suggested --sysroot to
--with-sysroot; they should behave the same.
This is useful for cross-compiling, where you have different
projects/products and where you've put all headers and libraries
somewhere that's to be copied to the target (you supposedly
don't want to install a different compiler for each). Moving
the installed compiler is different.
brgds, H-P
More information about the Gcc
mailing list