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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Thu Mar 15 20:21:44 2012 UTC (2 years, 9 months ago) by vapier
Branch: MAIN
Changes since 1.7: +2 -3 lines
Drop gcc-config dep now that the toolchain.eclass forces it.

(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)

1 vapier 1.8 # Copyright 1999-2012 Gentoo Foundation
2 dirtyepic 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.8 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.6.0.ebuild,v 1.7 2011/12/03 20:28:07 vapier Exp $
4 dirtyepic 1.1
5 dirtyepic 1.3 PATCH_VER="1.2"
6 dirtyepic 1.1 UCLIBC_VER="1.0"
7    
8     # Hardened gcc 4 stuff
9     PIE_VER="0.4.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     SSP_UCLIBC_STABLE=""
18     #end Hardened stuff
19    
20     inherit toolchain
21    
22     DESCRIPTION="The GNU Compiler Collection"
23    
24     LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
25     KEYWORDS=""
26    
27 vapier 1.6 RDEPEND=""
28 dirtyepic 1.1 DEPEND="${RDEPEND}
29 vapier 1.6 elibc_glibc? ( >=sys-libs/glibc-2.8 )
30 dirtyepic 1.1 amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )
31     >=${CATEGORY}/binutils-2.18"
32    
33     if [[ ${CATEGORY} != cross-* ]] ; then
34     PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
35     fi
36    
37     src_unpack() {
38 vapier 1.7 if has_version '<sys-libs/glibc-2.12' ; then
39     ewarn "Your host glibc is too old; disabling automatic fortify."
40     ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
41     EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
42     fi
43    
44 dirtyepic 1.1 toolchain_src_unpack
45    
46     use vanilla && return 0
47    
48     [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
49     }
50    
51     pkg_setup() {
52     toolchain_pkg_setup
53    
54     ewarn
55     ewarn "LTO support is still experimental and unstable."
56     ewarn "Any bugs resulting from the use of LTO will not be fixed."
57     ewarn
58     }

  ViewVC Help
Powered by ViewVC 1.1.20