enbale --with-float=hard for arm eabihf tuples #528278
authorMike Frysinger <vapier@gentoo.org>
Sat, 15 Nov 2014 08:45:33 +0000 (08:45 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 15 Nov 2014 08:45:33 +0000 (08:45 +0000)
eclass/toolchain.eclass

index 9ac8fab83fe90eab95e594b5418ad9c3be109d7f..1345b5eb83011f057c76a62dc4912c52a4b3a8eb 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.646 2014/11/04 08:04:00 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.647 2014/11/15 08:45:33 vapier Exp $
 
 # Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
 
@@ -1040,9 +1040,9 @@ toolchain_src_configure() {
        *)
                # If they've explicitly opt-ed in, do hardfloat,
                # otherwise let the gcc default kick in.
-               [[ ${CTARGET//_/-} == *-hardfloat-* ]] \
-                       && confgcc+=( --with-float=hard )
-               ;;
+               case ${CTARGET//_/-} in
+               *-hardfloat-*|*eabihf) confgcc+=( --with-float=hard ) ;;
+               esac
        esac
 
        local with_abi_map=()