summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMark Loeser <halcy0n@gentoo.org>2010-02-27 20:54:35 +0000
committerMark Loeser <halcy0n@gentoo.org>2010-02-27 20:54:35 +0000
commitc8ca3443d7b36f89839fb6ba32970a79b6cd8828 (patch)
tree4a976de42135f55ef4aad52779ce445e0cf6e8be /eclass
parentMarked ~x64-macos, thanks Ramon van Alteren in bug #306705 (diff)
downloadgentoo-2-c8ca3443d7b36f89839fb6ba32970a79b6cd8828.tar.gz
gentoo-2-c8ca3443d7b36f89839fb6ba32970a79b6cd8828.tar.bz2
gentoo-2-c8ca3443d7b36f89839fb6ba32970a79b6cd8828.zip
Use --with-arch for arm now as well. Thanks to Raúl Porcel <armin76 AT gentoo DOT org>; bug #264534
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 4e41128d9817..6b0c1d9ef211 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.416 2010/01/09 20:42:19 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.417 2010/02/27 20:54:35 halcy0n Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -1230,6 +1230,17 @@ gcc-compiler-configure() {
fi
case $(tc-arch) in
+ # bug #264534
+ arm)
+ local arm_arch="${CTARGET%%-*}"
+ # Convert armv7{a,r,m} to armv7-{a,r,m}
+ [[ ! -z "${arm_arch##armv7}" ]] && arm_arch="${arm_arch/armv7/armv7-}"
+ # Remove 'l'
+ [[ -z "${arm_arch##armv*l}" ]] && arch="${arm_arch/l/}"
+ # Remove 'eb'
+ [[ -z "${arm_arch##armv*eb}" ]] && arch="${arm_arch/eb/}"
+ confgcc="${confgcc} --with-arch=${arm_arch}"
+ ;;
# Add --with-abi flags to set default MIPS ABI
mips)
local mips_abi=""