From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7rXs-0001nr-D5 for qemu-devel@nongnu.org; Wed, 14 Mar 2012 12:59:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7rXm-00071z-4t for qemu-devel@nongnu.org; Wed, 14 Mar 2012 12:59:27 -0400 Received: from db3ehsobe002.messaging.microsoft.com ([213.199.154.140]:49981 helo=db3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7rXl-00071h-UV for qemu-devel@nongnu.org; Wed, 14 Mar 2012 12:59:22 -0400 From: Stuart Yoder Date: Wed, 14 Mar 2012 10:36:30 -0600 Message-ID: <1331742990-14385-1-git-send-email-stuart.yoder@freescale.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH] configure: change endian cross compilation test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 -- 1.7.3.4