This is the mail archive of the gcc-bugs@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]

Re: with_cross_host vs cross-hosted



> >   if test "$build $with_cross_host" = "$host "; then
> 
> Well, I'd just like to express a preference for a more explicit test
> statement:
> 
> if test x"$with_cross_host" = x && test x"$build" = x"$host"

Oops, sorry.  That test was for the first test, not the second, and
should read != not =.  We need an "or" condition, not "and", for that
test.

> Exactly.  linux->cygwin->cygwin is not a Canadian cross, as people keep
> reminding me; it's another kind of fish, a host-x-host.  The only thing

I call them "crossed natives" for lack of a single-word name for them.

linux->linux->linux	native
linux->linux->cygwin	cross
linux->cygwin->cygwin	crossed native
linux->cygwin->mips	canadian

I don't know what linux->cygwin->linux would be called.  It's
technically a canadian, but last time I tried that (with
linux->djgpp->linux) it didn't work - it thought it was native.
Maybe we should call it a "crossback"?

> Which I think is wrong to begin with, and is probably wrong for you on
> a host-x-host build.  You'll probably pick up -I/usr/include that way,
> and that's not kosher!

It would, except I use a build-specific --prefix.


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