This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: target_header_dir vs host-x-host


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]