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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Nov 5 04:25:47 2012 UTC (20 months, 3 weeks ago) by dirtyepic
Branch: MAIN
Changes since 1.5: +2 -2 lines
Patchset 1.3. Backport patches to ignore always_inline attribute on redefined
extern inline functions (bug #423945 and #435002) and preserve user alignment
on user defined sections (among other things fixes glibc build on PPC).

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key F9A40662)

1 # Copyright 1999-2012 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.7.2.ebuild,v 1.5 2012/10/21 17:58:23 vapier Exp $
4
5 PATCH_VER="1.3"
6 UCLIBC_VER="1.0"
7
8 # Hardened gcc 4 stuff
9 PIE_VER="0.5.5"
10 SPECS_VER="0.2.0"
11 SPECS_GCC_VER="4.4.3"
12 # arch/libc configurations known to be stable with {PIE,SSP}-by-default
13 PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
14 PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
15 SSP_STABLE="amd64 x86 ppc ppc64 arm"
16 # uclibc need tls and nptl support for SSP support
17 # uclibc need to be >= 0.9.33
18 SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
19 #end Hardened stuff
20
21 inherit toolchain
22
23 DESCRIPTION="The GNU Compiler Collection"
24
25 LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
26
27 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86
28 ~amd64-fbsd ~x86-fbsd"
29
30 RDEPEND=""
31 DEPEND="${RDEPEND}
32 elibc_glibc? ( >=sys-libs/glibc-2.8 )
33 amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )
34 >=${CATEGORY}/binutils-2.18"
35
36 if [[ ${CATEGORY} != cross-* ]] ; then
37 PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
38 fi
39
40 src_unpack() {
41 if has_version '<sys-libs/glibc-2.12' ; then
42 ewarn "Your host glibc is too old; disabling automatic fortify."
43 ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
44 EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
45 fi
46
47 # drop the x32 stuff once 4.7 goes stable
48 if [[ ${CTARGET} != x86_64* ]] || ! has x32 $(get_all_abis TARGET) ; then
49 EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
50 fi
51
52 toolchain_src_unpack
53
54 use vanilla && return 0
55
56 [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
57 }
58
59 pkg_setup() {
60 toolchain_pkg_setup
61
62 ewarn
63 ewarn "LTO support is still experimental and unstable."
64 ewarn "Any bugs resulting from the use of LTO will not be fixed."
65 ewarn
66 }

  ViewVC Help
Powered by ViewVC 1.1.20