RFC: Replace -isysroot with --sysroot?

Mike Stump mrs@apple.com
Wed Dec 1 22:12:00 GMT 2004


On Dec 1, 2004, at 12:50 PM, Daniel Jacobowitz wrote:
> Could you give an example?  Most of the time I've needed to use a
> different set of headers, I've wanted a different set of libraries too.
> That's why there's a single --with-sysroot option for both.

Ah, yes, we find it useful in that exact combination.  Te way in which 
we get it is a linker flag, -sysroot /usr/dev/sdk-previousos, and the 
compiler arranges to pass that flag when isysroot is given.

The reason why we do it that way is the linker `knows' about a few 
places and we don't want to teach the compiler any more about the 
linker.

I'd say, push this into binutils's ld, autoconf for it, and then we can 
just use it.


On Dec 1, 2004, at 12:43 PM, Hans-Peter Nilsson wrote:
> 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.

Oops, sorry, yes, conceptually, we want the same thing.



More information about the Gcc mailing list