From 15b3fbe2334bf0649518e67b372f037e2d7f27ae Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 30 Nov 2009 13:56:16 +0100 Subject: [PATCH] gmp: fix to use host g++ and remove '--target' configure option at toolchain stage --- base/gmp/gmp.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/base/gmp/gmp.conf b/base/gmp/gmp.conf index 1d5a07402..902a655fb 100644 --- a/base/gmp/gmp.conf +++ b/base/gmp/gmp.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../gmp/gmp.conf -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2009 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -13,6 +13,12 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- +# use host g++ and remove '--target' configure option at toolchain stage +if atstage toolchain; then + export CXX=g++ + var_remove_regex confopt ' ' '--target=.*' +fi + if atstage native; then var_append confopt ' ' "--enable-cxx" fi