1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.3.4.ebuild,v 1.9 2009/11/10 17:58:55 ranger Exp $
5 GENTOO_PATCH_EXCLUDE="69_all_gcc43-pr39013.patch" #262567
12 # Hardened gcc 4 stuff
16 # arch/libc configurations known to be stable or untested with {PIE,SSP,FORTIFY}-by-default
17 PIE_GLIBC_STABLE="x86 amd64 ~ppc ~ppc64 ~arm ~sparc"
18 PIE_UCLIBC_STABLE="x86 arm"
19 #SSP_STABLE="amd64 x86 ppc ppc64 ~arm ~sparc"
22 # whether we should split out specs files for multiple {PIE,SSP}-by-default
23 # and vanilla configurations.
24 SPLIT_SPECS=no #${SPLIT_SPECS-true} hard disable until #106690 is fixed
28 DESCRIPTION="The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking"
30 LICENSE="GPL-3 LGPL-3 libgcc libstdc++"
31 KEYWORDS="alpha amd64 arm -hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~x86-fbsd"
33 RDEPEND=">=sys-libs/zlib-1.1.4
34 >=sys-devel/gcc-config-1.4
49 >=media-libs/libart_lgpl-2.1
53 >=sys-libs/ncurses-5.2-r2
54 nls? ( sys-devel/gettext )
57 test? ( sys-devel/autogen dev-util/dejagnu )
58 >=sys-apps/texinfo-4.2-r4
59 >=sys-devel/bison-1.875
61 elibc_glibc? ( >=sys-libs/glibc-2.8 )
62 amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )
63 ppc? ( >=${CATEGORY}/binutils-2.17 )
64 ppc64? ( >=${CATEGORY}/binutils-2.17 )
65 >=${CATEGORY}/binutils-2.15.94"
66 PDEPEND=">=sys-devel/gcc-config-1.4"
67 if [[ ${CATEGORY} != cross-* ]] ; then
68 PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
74 use vanilla && return 0
76 sed -i 's/use_fixproto=yes/:/' gcc/config.gcc #PR33200
78 [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
80 [[ ${CTARGET} == *-softfloat-* ]] && epatch "${FILESDIR}"/4.3.2/gcc-4.3.2-softfloat.patch
82 epatch "${FILESDIR}"/gcc-pod-deps.patch