/[gentoo-alt]/trunk/overlay/sys-devel/gcc/gcc-3.4.5-r1.ebuild
Gentoo

Contents of /trunk/overlay/sys-devel/gcc/gcc-3.4.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1160 - (show annotations) (download)
Fri Mar 24 09:48:35 2006 UTC (8 years, 3 months ago) by truedfx
File size: 5365 byte(s)
Update ebuild to match official gcc 3.4.5-r1 ebuild, mostly extra keywords


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