From a50a749f78d0846ac6b4181f256c37509fb92e41 Mon Sep 17 00:00:00 2001 From: Raúl Porcel Date: Fri, 23 Apr 2010 18:58:06 +0000 Subject: Use hardfloat only if hardfloat is true --- eclass/toolchain.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eclass') diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 69efc6562852..5d5c9add34e5 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.422 2010/04/20 17:47:09 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.423 2010/04/23 18:58:06 armin76 Exp $ # # Maintainer: Toolchain Ninjas @@ -1241,9 +1241,9 @@ gcc-compiler-configure() { [[ ${arm_arch} == *eb ]] && arm_arch=${arm_arch%eb} confgcc="${confgcc} --with-arch=${arm_arch}" fi - + # Enable hardvfp - if [[ ${CTARGET##*-} == *eabi ]] && [[ $(tc-is-softfloat) == no ]] && \ + if [[ ${CTARGET##*-} == *eabi ]] && [[ $(tc-is-hardfloat) == yes ]] && \ tc_version_is_at_least "4.5" ; then confgcc="${confgcc} --with-float=hard" fi -- cgit v1.2.3-65-gdbad