From patchwork Wed Mar 14 16:36:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: configure: change endian cross compilation test Date: Wed, 14 Mar 2012 06:36:30 -0000 From: Stuart Yoder X-Patchwork-Id: 146689 Message-Id: <1331742990-14385-1-git-send-email-stuart.yoder@freescale.com> To: Cc: aliguori@us.ibm.com, paul@codesourcery.com, Stuart Yoder From: Stuart Yoder 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 --- 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