RFC: Replace -isysroot with --sysroot?
Daniel Jacobowitz
drow@false.org
Wed Dec 1 22:17:00 GMT 2004
On Wed, Dec 01, 2004 at 02:11:55PM -0800, Mike Stump wrote:
> 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.
The problem is that the compiler also needs to know the sysroot,
because it will search for startfiles (crt*). This is the skew I was
talking about. Yes, the linker will need an option too.
--
Daniel Jacobowitz
More information about the Gcc
mailing list