| 1 |
# Copyright 1999-2011 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.5.ebuild,v 1.8 2011/11/09 19:22:57 vapier Exp $
|
| 4 |
|
| 5 |
PATCH_VER="1.1"
|
| 6 |
UCLIBC_VER="1.0"
|
| 7 |
|
| 8 |
# Hardened gcc 4 stuff
|
| 9 |
PIE_VER="10.1.5"
|
| 10 |
SPECS_VER="0.9.4"
|
| 11 |
|
| 12 |
# arch/libc configurations known to be stable or untested with {PIE,SSP,FORTIFY}-by-default
|
| 13 |
PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm sparc"
|
| 14 |
PIE_UCLIBC_STABLE="x86 arm"
|
| 15 |
#SSP_STABLE="amd64 x86 ppc ppc64 ~arm ~sparc"
|
| 16 |
#SSP_UCLIBC_STABLE=""
|
| 17 |
|
| 18 |
inherit toolchain
|
| 19 |
|
| 20 |
DESCRIPTION="The GNU Compiler Collection"
|
| 21 |
|
| 22 |
LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ ) FDL-1.2"
|
| 23 |
KEYWORDS="~alpha ~amd64 ~arm -hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
| 24 |
|
| 25 |
RDEPEND=""
|
| 26 |
DEPEND="${RDEPEND}
|
| 27 |
amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )
|
| 28 |
ppc? ( >=${CATEGORY}/binutils-2.17 )
|
| 29 |
ppc64? ( >=${CATEGORY}/binutils-2.17 )
|
| 30 |
>=${CATEGORY}/binutils-2.15.94"
|
| 31 |
if [[ ${CATEGORY} != cross-* ]] ; then
|
| 32 |
PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
|
| 33 |
fi
|
| 34 |
|
| 35 |
src_unpack() {
|
| 36 |
toolchain_src_unpack
|
| 37 |
|
| 38 |
use vanilla && return 0
|
| 39 |
|
| 40 |
sed -i 's/use_fixproto=yes/:/' gcc/config.gcc #PR33200
|
| 41 |
|
| 42 |
[[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
|
| 43 |
|
| 44 |
[[ ${CTARGET} == *-softfloat-* ]] && epatch "${FILESDIR}"/4.3.2/gcc-4.3.2-softfloat.patch
|
| 45 |
}
|