From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7rTO-0001Em-8P for qemu-devel@nongnu.org; Wed, 14 Mar 2012 12:55:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7rTH-0005yJ-Iz for qemu-devel@nongnu.org; Wed, 14 Mar 2012 12:54:49 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:32886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7rTH-0005xp-Cx for qemu-devel@nongnu.org; Wed, 14 Mar 2012 12:54:43 -0400 From: Paul Brook Date: Wed, 14 Mar 2012 16:54:34 +0000 References: <1331742990-14385-1-git-send-email-stuart.yoder@freescale.com> In-Reply-To: <1331742990-14385-1-git-send-email-stuart.yoder@freescale.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Message-Id: <201203141654.35425.paul@codesourcery.com> Subject: Re: [Qemu-devel] [PATCH] configure: change endian cross compilation test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stuart Yoder Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org > 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. 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. Paul