/[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.20 - (hide annotations) (download)
Thu Mar 20 20:39:50 2008 UTC (6 years, 7 months ago) by vapier
Branch: MAIN
Changes since 1.19: +4 -4 lines
Drop eselect-compiler from DEPENDs since it has been dropped from the tree.
(Portage version: 2.2_pre5)

1 vapier 1.20 # Copyright 1999-2008 Gentoo Foundation
2 kevquinn 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.20 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.4.6-r2.ebuild,v 1.19 2007/09/05 22:20:11 vapier Exp $
4 kevquinn 1.1
5     MAN_VER=""
6 vapier 1.17 PATCH_VER="1.5"
7 kevquinn 1.1 UCLIBC_VER="1.1"
8     UCLIBC_GCC_VER="3.4.5"
9 vapier 1.10 PIE_VER="8.7.10"
10 kevquinn 1.1 PIE_GCC_VER="3.4.6"
11     PP_VER="1.0"
12     PP_GCC_VER="3.4.6"
13     HTB_VER="1.00"
14     HTB_GCC_VER="3.4.4"
15 vapier 1.19 D_VER="0.24"
16 kevquinn 1.1
17     GCC_LIBSSP_SUPPORT="true"
18    
19     ETYPE="gcc-compiler"
20    
21     # arch/libc configurations known to be stable with {PIE,SSP}-by-default
22 solar 1.16 SSP_STABLE="x86 sparc amd64 ppc ppc64 ia64"
23 kevquinn 1.1 SSP_UCLIBC_STABLE="arm mips ppc x86"
24 solar 1.16 PIE_GLIBC_STABLE="x86 sparc amd64 ppc ppc64 ia64"
25 kevquinn 1.1 PIE_UCLIBC_STABLE="x86 mips ppc"
26    
27     # arch/libc configurations known to be broken with {PIE,SSP}-by-default
28     SSP_UNSUPPORTED="hppa sh"
29     SSP_UCLIBC_UNSUPPORTED="${SSP_UNSUPPORTED}"
30     PIE_UCLIBC_UNSUPPORTED="alpha amd64 arm hppa ia64 m68k ppc64 s390 sh sparc"
31     PIE_GLIBC_UNSUPPORTED="hppa"
32    
33     # whether we should split out specs files for multiple {PIE,SSP}-by-default
34     # and vanilla configurations.
35     SPLIT_SPECS=${SPLIT_SPECS-true}
36    
37     #GENTOO_PATCH_EXCLUDE=""
38     #PIEPATCH_EXCLUDE=""
39    
40     inherit toolchain eutils
41    
42     DESCRIPTION="The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking"
43    
44 blubb 1.14 KEYWORDS="-* alpha amd64 arm ~ia64 ~mips ppc ppc64 ~s390 sh sparc x86 ~x86-fbsd"
45 kevquinn 1.1
46     # we need a proper glibc version for the Scrt1.o provided to the pie-ssp specs
47     # NOTE: we SHOULD be using at least binutils 2.15.90.0.1 everywhere for proper
48     # .eh_frame ld optimisation and symbol visibility support, but it hasnt been
49     # well tested in gentoo on any arch other than amd64!!
50 vapier 1.20 RDEPEND=">=sys-devel/gcc-config-1.4
51 kevquinn 1.1 >=sys-libs/zlib-1.1.4
52     virtual/libiconv
53     elibc_glibc? (
54     >=sys-libs/glibc-2.3.3_pre20040420-r1
55     hardened? ( >=sys-libs/glibc-2.3.3_pre20040529 )
56     )
57     !build? (
58     gcj? (
59     gtk? (
60 dberkholz 1.18 x11-libs/libXt
61     x11-libs/libX11
62     x11-libs/libXtst
63     x11-proto/xproto
64     x11-proto/xextproto
65 kevquinn 1.1 >=x11-libs/gtk+-2.2
66     )
67     >=media-libs/libart_lgpl-2.1
68     )
69     >=sys-libs/ncurses-5.2-r2
70     nls? ( sys-devel/gettext )
71     )"
72    
73     if [[ ${CATEGORY/cross-} != ${CATEGORY} ]]; then
74     RDEPEND="${RDEPEND} ${CATEGORY}/binutils"
75     fi
76    
77     DEPEND="${RDEPEND}
78     >=sys-apps/texinfo-4.2-r4
79     >=sys-devel/bison-1.875
80     >=sys-devel/binutils-2.14.90.0.8-r1
81     amd64? ( >=sys-devel/binutils-2.15.90.0.1.1-r1 )"
82 vapier 1.20 PDEPEND=">=sys-devel/gcc-config-1.4"
83 kevquinn 1.1
84     src_unpack() {
85     gcc_src_unpack
86    
87     # misc patches that havent made it into a patch tarball yet
88     [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
89    
90     # nothing in the tree provides libssp.so, so nothing will ever trigger this
91     # logic, but having the patch in the tree makes life so much easier for me
92     # since I dont have to also have an overlay for this.
93     want_libssp && epatch "${FILESDIR}"/3.4.3/libssp.patch
94    
95     # Anything useful and objc will require libffi. Seriously. Lets just force
96     # libffi to install with USE="objc", even though it normally only installs
97     # if you attempt to build gcj.
98     if ! use build && use objc && ! use gcj ; then
99     epatch "${FILESDIR}"/3.4.3/libffi-without-libgcj.patch
100     #epatch ${FILESDIR}/3.4.3/libffi-nogcj-lib-path-fix.patch
101     fi
102    
103     # Fix cross-compiling
104     epatch "${FILESDIR}"/3.4.4/gcc-3.4.4-cross-compile.patch
105    
106     [[ ${CTARGET} == *-softfloat-* ]] && epatch "${FILESDIR}"/3.4.4/gcc-3.4.4-softfloat.patch
107    
108     # Arch stuff
109     case $(tc-arch) in
110     mips)
111     # If mips, and we DON'T want multilib, then rig gcc to only use n32 OR n64
112     if ! is_multilib; then
113     use n32 && epatch ${FILESDIR}/3.4.1/gcc-3.4.1-mips-n32only.patch
114     use n64 && epatch ${FILESDIR}/3.4.1/gcc-3.4.1-mips-n64only.patch
115     fi
116    
117     # Patch forward-ported from a gcc-3.0.x patch that adds -march=r10000 and
118     # -mtune=r10000 support to gcc (Allows the compiler to generate code to
119     # take advantage of R10k's second ALU, perform shifts, etc..
120     #
121     # Needs re-porting to DFA in gcc-4.0 - Any Volunteers? :)
122     epatch ${FILESDIR}/3.4.2/gcc-3.4.x-mips-add-march-r10k.patch
123    
124     # This is a very special patch -- it allows us to build semi-usable kernels
125     # on SGI IP28 (Indigo2 Impact R10000) systems. The patch is henceforth
126     # regarded as a kludge by upstream, and thus, it will never get accepted upstream,
127     # but for our purposes of building a kernel, it works.
128     # Unless you're building an IP28 kernel, you really don't need care about what
129     # this patch does, because if you are, you are probably already aware of what
130     # it does.
131     # All that said, the abilities of this patch are disabled by default and need
132     # to be enabled by passing -mip28-cache-barrier. Only used to build kernels,
133     # There is the possibility it may be used for very specific userland apps too.
134     if use ip28 or use ip32r10k; then
135     epatch ${FILESDIR}/3.4.2/gcc-3.4.2-mips-ip28_cache_barriers-v4.patch
136     fi
137     ;;
138     amd64)
139     if is_multilib ; then
140     sed -i -e '/GLIBCXX_IS_NATIVE=/s:false:true:' libstdc++-v3/configure || die
141     fi
142     ;;
143     esac
144     }

  ViewVC Help
Powered by ViewVC 1.1.20