/[gentoo-x86]/sys-devel/gcc/gcc-2.95.3-r10.ebuild
Gentoo

Contents of /sys-devel/gcc/gcc-2.95.3-r10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri Sep 28 03:13:09 2012 UTC (22 months ago) by zmedico
Branch: MAIN
Changes since 1.8: +2 -4 lines
Drop global scope tc-arch call, which breaks metadata generation due to KV being unset (since rev 1.118 of toolchain-funcs.eclass). The GENTOO_PATCH_EXCLUDE setting that this tc-arch call triggers appears to be obsolete anyway, since the variable is not exported and there are no references to it whatsoever in any eclasses or ebuilds.

(Portage version: 2.2.0_alpha134/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.3-r10.ebuild,v 1.8 2011/12/02 23:43:54 vapier Exp $
4
5 PATCH_VER="1.3"
6
7 inherit toolchain eutils flag-o-matic
8
9 DESCRIPTION="The GNU Compiler Collection"
10
11 KEYWORDS="~alpha ~ppc ~sparc ~x86"
12
13 gcc2-flags() {
14 # Are we trying to compile with gcc3 ? CFLAGS and CXXFLAGS needs to be
15 # valid for gcc-2.95.3 ...
16 if [[ $(tc-arch) == "x86" || $(tc-arch) == "amd64" ]] ; then
17 CFLAGS=${CFLAGS//-mtune=/-mcpu=}
18 CXXFLAGS=${CXXFLAGS//-mtune=/-mcpu=}
19 fi
20
21 replace-cpu-flags k6-{2,3} k6
22 replace-cpu-flags athlon{,-{tbird,4,xp,mp}} i686
23
24 replace-cpu-flags pentium-mmx i586
25 replace-cpu-flags pentium{2,3,4} i686
26
27 replace-cpu-flags ev6{7,8} ev6
28 }
29
30 src_compile() {
31 strip-linguas -u */po
32 gcc2-flags
33 toolchain_src_compile
34 }

  ViewVC Help
Powered by ViewVC 1.1.20