diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-08-06 09:45:23 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-08-06 09:45:23 +0000 |
commit | d4e1412b8116e70ff8edf85f0cd385ec64c1810a (patch) | |
tree | 25bb5efb7ad08c4cde8f3404553ef53b7d9fb511 /sys-libs | |
parent | old (diff) | |
download | gentoo-2-d4e1412b8116e70ff8edf85f0cd385ec64c1810a.tar.gz gentoo-2-d4e1412b8116e70ff8edf85f0cd385ec64c1810a.tar.bz2 gentoo-2-d4e1412b8116e70ff8edf85f0cd385ec64c1810a.zip |
Add default -march for x86 builds based on CHOST #185404.
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/glibc/glibc-2.6.ebuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys-libs/glibc/glibc-2.6.ebuild b/sys-libs/glibc/glibc-2.6.ebuild index b868f56be5ca..c9b083e755a8 100644 --- a/sys-libs/glibc/glibc-2.6.ebuild +++ b/sys-libs/glibc/glibc-2.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.6.ebuild,v 1.16 2007/07/28 21:01:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.6.ebuild,v 1.17 2007/08/06 09:45:23 vapier Exp $ # Here's how the cross-compile logic breaks down ... # CTARGET - machine that will target the binaries @@ -676,7 +676,12 @@ setup_flags() { [[ -z ${CTARGET_OPT} ]] && CTARGET_OPT=$(get_abi_CHOST) fi - case $(tc-arch) in + case $(tc-arch ${CTARGET_OPT}) in + x86) + # -march needed for #185404 + local t=${CTARGET_OPT:-${CTARGET}} + export CFLAGS="-march=${t%%-*} ${CFLAGS}" + ;; amd64) # Punt this when amd64's 2004.3 is removed CFLAGS_x86="-m32" |