From 6488d27732b06219afab3c825f6f6432a43b45d6 Mon Sep 17 00:00:00 2001 From: Mark Loeser Date: Sat, 27 Feb 2010 20:54:35 +0000 Subject: [PATCH] =?utf8?q?Use=20--with-arch=20for=20arm=20now=20as=20well.?= =?utf8?q?=20=20Thanks=20to=20Ra=C3=BAl=20Porcel=20;=20bug=20#264534?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- eclass/toolchain.eclass | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 @@ -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="" -- 2.26.2