qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] configure: change endian cross compilation test


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] configure: change endian cross compilation test
Date: Wed, 14 Mar 2012 17:17:53 +0000

2012/3/14 Paul Brook <address@hidden>:
>> From: Stuart Yoder <address@hidden>
>>
>> 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

[Prev in Thread] Current Thread [Next in Thread]