Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.7.3.ebuild,v 1.2 2013/05/20 10:56:06 aballier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.7.3.ebuild,v 1.2 2013/05/20 10:56:06 aballier Exp $ |
4 |
|
4 |
|
|
|
5 |
EAPI="5" |
6 |
|
5 |
PATCH_VER="1.0" |
7 |
PATCH_VER="1.0" |
6 |
UCLIBC_VER="1.0" |
8 |
UCLIBC_VER="1.0" |
7 |
|
9 |
|
Lines 18-24
Link Here
|
18 |
SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm" |
20 |
SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm" |
19 |
#end Hardened stuff |
21 |
#end Hardened stuff |
20 |
|
22 |
|
21 |
inherit toolchain |
23 |
inherit toolchain-r1 |
22 |
|
24 |
|
23 |
DESCRIPTION="The GNU Compiler Collection" |
25 |
DESCRIPTION="The GNU Compiler Collection" |
24 |
|
26 |
|
Lines 35-41
Link Here
|
35 |
PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )" |
37 |
PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )" |
36 |
fi |
38 |
fi |
37 |
|
39 |
|
38 |
src_unpack() { |
40 |
src_prepare() { |
39 |
if has_version '<sys-libs/glibc-2.12' ; then |
41 |
if has_version '<sys-libs/glibc-2.12' ; then |
40 |
ewarn "Your host glibc is too old; disabling automatic fortify." |
42 |
ewarn "Your host glibc is too old; disabling automatic fortify." |
41 |
ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315" |
43 |
ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315" |
Lines 47-61
Link Here
|
47 |
EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch" |
49 |
EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch" |
48 |
fi |
50 |
fi |
49 |
|
51 |
|
50 |
toolchain_src_unpack |
52 |
toolchain-r1_src_prepare |
51 |
|
53 |
|
52 |
use vanilla && return 0 |
54 |
use vanilla && return 0 |
53 |
|
55 |
|
54 |
[[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch |
56 |
[[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch |
55 |
} |
57 |
} |
56 |
|
58 |
|
57 |
pkg_setup() { |
59 |
pkg_pretend() { |
58 |
toolchain_pkg_setup |
60 |
toolchain-r1_pkg_pretend |
59 |
|
61 |
|
60 |
if use lto ; then |
62 |
if use lto ; then |
61 |
ewarn |
63 |
ewarn |