target_header_dir vs host-x-host
DJ Delorie
dj@redhat.com
Fri Mar 16 18:48:00 GMT 2012
moving to binutils for this...
> >> OK, but what's wrong --with-sysroot=/ ?
> >
> > It should work, it just seems "wrong" for a native compiler to have a sysroot...
>
> I agree that it's a bug, but I'm not sure I think it's the same bug that
> you think it is. Every toolchain has a sysroot, really. I think it's a
> bug that GNU ld only accepts the --sysroot option if configured with
> --with-sysroot. The default sysroot for a native toolchain is /. That
> should be the default even for the unusual case of cross-building a
> native toolchain. Right now it isn't, but the bug is not that the
> sysroot is /, it's that the sysroot has to be explicitly specified.
>
> Ian
Maybe we should consider making sysroot *always* enabled, with a
default of "/" then?
More information about the Binutils
mailing list