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.

Instead, test whether host compiler is same as target compiler,
which also works when --cross-prefix is used.

Signed-off-by: Stuart Yoder <stuart.yo...@freescale.com>
---
 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



Reply via email to