From: Mike Frysinger Date: Wed, 15 Nov 2006 22:17:56 +0000 (+0000) Subject: move gcc2-flags() to the gcc2 ebuild X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=245973244bc7f0274a82a8702b90edf73286dcd6;p=gentoo.git move gcc2-flags() to the gcc2 ebuild --- diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index b6f6d8fa58d3..2c1b2f19d850 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.111 2006/10/14 20:27:21 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.112 2006/11/15 22:17:56 vapier Exp $ # # Maintainer: base-system@gentoo.org @@ -573,28 +573,6 @@ raw-ldflags() { echo "$@" } -# This is thanks to great work from Paul de Vrieze , -# bug #9016. Also thanks to Jukka Salmi (bug #13907) for more -# fixes. -# -# Export CFLAGS and CXXFLAGS that are compadible with gcc-2.95.3 -gcc2-flags() { - if [[ $(tc-arch) == "x86" || $(tc-arch) == "amd64" ]] ; then - CFLAGS=${CFLAGS//-mtune=/-mcpu=} - CXXFLAGS=${CXXFLAGS//-mtune=/-mcpu=} - fi - - replace-cpu-flags k6-{2,3} k6 - replace-cpu-flags athlon{,-{tbird,4,xp,mp}} i686 - - replace-cpu-flags pentium-mmx i586 - replace-cpu-flags pentium{2,3,4} i686 - - replace-cpu-flags ev6{7,8} ev6 - - export CFLAGS CXXFLAGS -} - # Gets the flags needed for "NOW" binding bindnow-flags() { case $($(tc-getLD) -v 2>&1