[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] configure: change endian cross compilation test
From: |
Stuart Yoder |
Subject: |
[Qemu-devel] [PATCH] configure: change endian cross compilation test |
Date: |
Wed, 14 Mar 2012 10:36:30 -0600 |
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.
Instead, test whether host compiler is same as target compiler,
which also works when --cross-prefix is used.
Signed-off-by: Stuart Yoder <address@hidden>
---
configure | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index fe4fc4f..c5333bf 100755
--- a/configure
+++ b/configure
@@ -1269,7 +1269,7 @@ feature_not_found() {
exit 1;
}
-if test -z "$cross_prefix" ; then
+if test $cc = $host_cc; then
# ---
# big/little endian test
--
1.7.3.4
- [Qemu-devel] [PATCH] configure: change endian cross compilation test,
Stuart Yoder <=