summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2003-10-22 16:38:44 +0000
committerAron Griffis <agriffis@gentoo.org>2003-10-22 16:38:44 +0000
commit981fd6dad836e94d2fb99e10b482d1ed2926dce0 (patch)
treededd40823935ebdcb4758f96d67098f88af4e9fc /eclass/gcc.eclass
parentset ppc in keywords (diff)
downloadhistorical-981fd6dad836e94d2fb99e10b482d1ed2926dce0.tar.gz
historical-981fd6dad836e94d2fb99e10b482d1ed2926dce0.tar.bz2
historical-981fd6dad836e94d2fb99e10b482d1ed2926dce0.zip
fix gcc-2 compile on ev67
Diffstat (limited to 'eclass/gcc.eclass')
-rw-r--r--eclass/gcc.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/gcc.eclass b/eclass/gcc.eclass
index 9665cfa29330..f96f43838260 100644
--- a/eclass/gcc.eclass
+++ b/eclass/gcc.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gcc.eclass,v 1.14 2003/06/25 19:52:53 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gcc.eclass,v 1.15 2003/10/22 16:38:44 agriffis Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -123,5 +123,11 @@ gcc2-flags() {
CXXFLAGS=${CXXFLAGS//athlon-[xm]p/i686}
CXXFLAGS=${CXXFLAGS//athlon/i686}
+ if [ "$ARCH" = alpha ]; then
+ CHOST=${CHOST/#alphaev6[78]/alphaev6}
+ CFLAGS=${CFLAGS//ev6[78]/ev6}
+ CXXFLAGS=${CXXFLAGS//ev6[78]/ev6}
+ fi
+
export CFLAGS CXXFLAGS
}