From: Stuart Yoder <stuart.yoder@freescale.com>
To: qemu-devel@nongnu.org
Cc: aliguori@us.ibm.com, paul@codesourcery.com,
Stuart Yoder <stuart.yoder@freescale.com>
Subject: [Qemu-devel] [PATCH] configure: change endian cross compilation test
Date: Wed, 14 Mar 2012 10:36:30 -0600 [thread overview]
Message-ID: <1331742990-14385-1-git-send-email-stuart.yoder@freescale.com> (raw)
From: Stuart Yoder <stuart.yoder@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.yoder@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
next reply other threads:[~2012-03-14 16:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 16:36 Stuart Yoder [this message]
2012-03-14 16:54 ` [Qemu-devel] [PATCH] configure: change endian cross compilation test Paul Brook
2012-03-14 17:17 ` Peter Maydell
[not found] ` <CALRxmdAhwT-2p2VaO2mpN7sLr46BTBZRBkXsWWpoCd=UBH5PNQ@mail.gmail.com>
2012-03-14 18:09 ` Peter Maydell
2012-03-14 19:00 ` Stefan Weil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1331742990-14385-1-git-send-email-stuart.yoder@freescale.com \
--to=stuart.yoder@freescale.com \
--cc=aliguori@us.ibm.com \
--cc=paul@codesourcery.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.