This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: 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 the toolchain.

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. :-)

Thanks,

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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