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

Contents of /sys-devel/gcc/gcc-4.6.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.43 - (show annotations) (download)
Fri Mar 13 19:59:30 2015 UTC (4 months, 2 weeks ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.42: +1 -1 lines
FILE REMOVED
Move old ebuilds to toolchain overlay.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 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.6.3.ebuild,v 1.42 2014/10/24 00:23:04 vapier Exp $
4
5 EAPI="2"
6
7 PATCH_VER="1.13"
8 UCLIBC_VER="1.0"
9
10 # Hardened gcc 4 stuff
11 PIE_VER="0.5.2"
12 SPECS_VER="0.2.0"
13 SPECS_GCC_VER="4.4.3"
14 # arch/libc configurations known to be stable with {PIE,SSP}-by-default
15 PIE_GLIBC_STABLE="x86 amd64 mips ppc ppc64 arm ia64"
16 PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
17 SSP_STABLE="amd64 x86 mips ppc ppc64 arm"
18 # uclibc need tls and nptl support for SSP support
19 # uclibc need to be >= 0.9.32
20 SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
21 #end Hardened stuff
22
23 inherit eutils toolchain
24
25 KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd"
26
27 RDEPEND=""
28 DEPEND="${RDEPEND}
29 elibc_glibc? ( >=sys-libs/glibc-2.8 )
30 >=${CATEGORY}/binutils-2.18"
31
32 if [[ ${CATEGORY} != cross-* ]] ; then
33 PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
34 fi
35
36 src_prepare() {
37 if has_version '<sys-libs/glibc-2.12' ; then
38 ewarn "Your host glibc is too old; disabling automatic fortify."
39 ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
40 EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
41 fi
42
43 toolchain_src_prepare
44
45 use vanilla && return 0
46
47 [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
48 }

  ViewVC Help
Powered by ViewVC 1.1.20