[oe] [RFC, PATCH, resend] gmp: assign --target to --host to avoid configure error

Ben Gardiner bengardiner at nanometrics.ca
Thu Oct 14 14:24:14 UTC 2010


When trying to build angstrom-2008.1 from
f58a5d59b755bdb725497f574a8059529c134c27 of master or from
b78fc95424b5f0fb28246e8c61bb8b4d6a9d733a of stable/2009 the builds failed on
gmp-native (then later gmp). The error was that "--target is not appropriate
for GMP".

To avoid the error printed by the following code snippet from configure.in:

configure.in:
"
if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
  AC_MSG_ERROR([--target is not appropriate for GMP
Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
explicitly.  Use --host if cross-compiling (see "Installing GMP" in the
manual for more on this).])
fi
"

this patch assigns the value of the '--target' argument to the value of the
'--host' argument.

Tested by 'bitbake gmp' and 'bitbake gmp-native'

Signed-off-by: Ben Gardiner <bengardiner at nanometrics.ca>
CC: Christopher Larson <clarson at kergoth.com>

---

This patch will change the argument passed in --target for all versions of
gmp. Would it be better to restrict the change to newer versions only?

I resent this patch to the list since I did not see it show up in the
patchwork system 17hrs later.

---
 recipes/gmp/gmp.inc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/recipes/gmp/gmp.inc b/recipes/gmp/gmp.inc
index 522189d..8ffeb91 100644
--- a/recipes/gmp/gmp.inc
+++ b/recipes/gmp/gmp.inc
@@ -8,6 +8,8 @@ SRC_URI = "${GNU_MIRROR}/gmp/gmp-${PV}.tar.bz2;name=gmp \
 	   file://configure.patch \
 	   file://amd64.patch"
 
+TARGET_SYS = "${HOST_SYS}"
+
 inherit autotools 
 
 ARM_INSTRUCTION_SET = "arm"
-- 
1.7.0.4





More information about the Openembedded-devel mailing list