blob: e54d0c2875062564d853cf3856a9228d75c897da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-2.95.3-r10.ebuild,v 1.4 2008/03/20 20:39:50 vapier Exp $
PATCH_VER="1.3"
SPLIT_SPECS="no"
ETYPE="gcc-compiler"
inherit toolchain eutils flag-o-matic
DESCRIPTION="The GNU Compiler Collection"
KEYWORDS="~alpha ~ppc ~sparc ~x86"
RDEPEND=">=sys-libs/zlib-1.1.4
>=sys-apps/texinfo-4.2-r4
!build? ( >=sys-libs/ncurses-5.2-r2 )"
DEPEND="${RDEPEND}
!build? ( nls? ( sys-devel/gettext ) )"
PDEPEND=">=sys-devel/gcc-config-1.4"
[[ $(tc-arch ${TARGET}) == "alpha" ]] && GENTOO_PATCH_EXCLUDE="10_all_new-atexit.patch"
gcc2-flags() {
# Are we trying to compile with gcc3 ? CFLAGS and CXXFLAGS needs to be
# valid for gcc-2.95.3 ...
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
}
src_compile() {
strip-linguas -u */po
gcc2-flags
toolchain_src_compile
}
|