2012/3/14 Paul Brook <p...@codesourcery.com>:
>> From: Stuart Yoder <stuart.yo...@freescale.com>
>>
>> Previous check in configure's endian test was to determine if
>> this is a cross-compile build by testing whether --cross-prefix
>> was used.  This does not work for cross build environments
>> like Yocto that may set CC instead of --cross-prefix.

Do we even support not using --cross-prefix ? I'd have expected just
setting CC to run into random problems like using the host arch's
version of strip rather than the cross toolchain, the host's
pkg-config rather than the one that knows where the cross libraries
are, etc etc.

>> Instead, test whether host compiler is same as target compiler,
>> which also works when --cross-prefix is used.
>
> I'd much rather remove this test altogether.  If the cross case doesn't give
> the right answer for all the host systems we care about then we should fix
> that.

Agreed. I think looking at the host CPUs we support the only ones
that aren't guaranteed either big or little endian are (a) mips
and (b) ARM. ARM already identifies big-endian by a compile-time
check, and it seems likely that MIPS could too.

-- PMM

Reply via email to