/[gentoo-x86]/sys-devel/gcc/gcc-3.4.6-r2.ebuild
Gentoo

Contents of /sys-devel/gcc/gcc-3.4.6-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.35 - (hide annotations) (download)
Sun Jan 19 01:51:34 2014 UTC (7 months ago) by dirtyepic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.34: +7 -5 lines
Bump all to EAPI 2.

Signed-off-by: Ryan Hill <dirtyepic@gentoo.org>
(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 957A8463)

1 dirtyepic 1.35 # Copyright 1999-2014 Gentoo Foundation
2 kevquinn 1.1 # Distributed under the terms of the GNU General Public License v2
3 dirtyepic 1.35 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.4.6-r2.ebuild,v 1.34 2013/10/05 04:08:32 dirtyepic Exp $
4    
5     EAPI="2"
6 kevquinn 1.1
7 vapier 1.33 PATCH_VER="1.7"
8 kevquinn 1.1 UCLIBC_VER="1.1"
9     UCLIBC_GCC_VER="3.4.5"
10 vapier 1.22 HTB_VER="1.00.1"
11 kevquinn 1.1 HTB_GCC_VER="3.4.4"
12 vapier 1.19 D_VER="0.24"
13 kevquinn 1.1
14 dirtyepic 1.35 inherit eutils toolchain
15 kevquinn 1.1
16 dirtyepic 1.26 DESCRIPTION="The GNU Compiler Collection"
17 kevquinn 1.1
18 dirtyepic 1.34 KEYWORDS="-* alpha amd64 arm ~ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
19 dirtyepic 1.26 IUSE="ip28 ip32r10k n32 n64"
20 kevquinn 1.1
21     # we need a proper glibc version for the Scrt1.o provided to the pie-ssp specs
22     # NOTE: we SHOULD be using at least binutils 2.15.90.0.1 everywhere for proper
23     # .eh_frame ld optimisation and symbol visibility support, but it hasnt been
24     # well tested in gentoo on any arch other than amd64!!
25 vapier 1.28 RDEPEND=""
26 kevquinn 1.1 DEPEND="${RDEPEND}
27     >=sys-devel/binutils-2.14.90.0.8-r1
28     amd64? ( >=sys-devel/binutils-2.15.90.0.1.1-r1 )"
29    
30 dirtyepic 1.35 src_prepare() {
31     toolchain_src_prepare
32 kevquinn 1.1
33     # misc patches that havent made it into a patch tarball yet
34     [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
35    
36     # Anything useful and objc will require libffi. Seriously. Lets just force
37     # libffi to install with USE="objc", even though it normally only installs
38     # if you attempt to build gcj.
39     if ! use build && use objc && ! use gcj ; then
40     epatch "${FILESDIR}"/3.4.3/libffi-without-libgcj.patch
41     #epatch ${FILESDIR}/3.4.3/libffi-nogcj-lib-path-fix.patch
42     fi
43    
44     # Fix cross-compiling
45     epatch "${FILESDIR}"/3.4.4/gcc-3.4.4-cross-compile.patch
46    
47     [[ ${CTARGET} == *-softfloat-* ]] && epatch "${FILESDIR}"/3.4.4/gcc-3.4.4-softfloat.patch
48    
49     # Arch stuff
50     case $(tc-arch) in
51     mips)
52     # If mips, and we DON'T want multilib, then rig gcc to only use n32 OR n64
53     if ! is_multilib; then
54 dirtyepic 1.26 use n32 && epatch "${FILESDIR}"/3.4.1/gcc-3.4.1-mips-n32only.patch
55     use n64 && epatch "${FILESDIR}"/3.4.1/gcc-3.4.1-mips-n64only.patch
56 kevquinn 1.1 fi
57    
58     # Patch forward-ported from a gcc-3.0.x patch that adds -march=r10000 and
59     # -mtune=r10000 support to gcc (Allows the compiler to generate code to
60     # take advantage of R10k's second ALU, perform shifts, etc..
61     #
62     # Needs re-porting to DFA in gcc-4.0 - Any Volunteers? :)
63 dirtyepic 1.26 epatch "${FILESDIR}"/3.4.2/gcc-3.4.x-mips-add-march-r10k.patch
64 kevquinn 1.1
65     # This is a very special patch -- it allows us to build semi-usable kernels
66     # on SGI IP28 (Indigo2 Impact R10000) systems. The patch is henceforth
67     # regarded as a kludge by upstream, and thus, it will never get accepted upstream,
68     # but for our purposes of building a kernel, it works.
69     # Unless you're building an IP28 kernel, you really don't need care about what
70     # this patch does, because if you are, you are probably already aware of what
71     # it does.
72     # All that said, the abilities of this patch are disabled by default and need
73     # to be enabled by passing -mip28-cache-barrier. Only used to build kernels,
74     # There is the possibility it may be used for very specific userland apps too.
75 vapier 1.24 if use ip28 || use ip32r10k; then
76 dirtyepic 1.26 epatch "${FILESDIR}"/3.4.2/gcc-3.4.2-mips-ip28_cache_barriers-v4.patch
77 kevquinn 1.1 fi
78     ;;
79     amd64)
80     if is_multilib ; then
81     sed -i -e '/GLIBCXX_IS_NATIVE=/s:false:true:' libstdc++-v3/configure || die
82     fi
83     ;;
84     esac
85     }

  ViewVC Help
Powered by ViewVC 1.1.20