This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: --with-build-sysroot, et. al.
DJ Delorie wrote:
`test "x$(sysroot)" = x || echo "--sysroot=$(sysroot)"`
What happens if you pass '--sysroot=' to gcc? If that's harmless, we
can avoid the logic completely.
If it's not harmless, IMHO it should be.
That sets the sysroot to the empty string, which is the right behavior.
(Well, either it should set the sysroot to the empty string, or, like
"-specs=" issue an error.)
Using that isn't safe; it overrides the sysroot for people who
configured with --sysroot=, and don't want to override it while building
So, I still think a --with-build-sysroot configure option, even with
it's original name, is the best solution, but, really, I just want to
get something checked in, so tell me how I get there from here. :-)