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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
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.6.0.ebuild,v 1.6 2011/11/09 19:22:57 vapier Exp $ 3# $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 4
5PATCH_VER="1.2" 5PATCH_VER="1.2"
6UCLIBC_VER="1.0" 6UCLIBC_VER="1.0"
7 7
8# Hardened gcc 4 stuff 8# Hardened gcc 4 stuff
34if [[ ${CATEGORY} != cross-* ]] ; then 34if [[ ${CATEGORY} != cross-* ]] ; then
35 PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )" 35 PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
36fi 36fi
37 37
38src_unpack() { 38src_unpack() {
39 if has_version '<sys-libs/glibc-2.12' ; then
40 ewarn "Your host glibc is too old; disabling automatic fortify."
41 ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
42 EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
43 fi
44
39 toolchain_src_unpack 45 toolchain_src_unpack
40 46
41 use vanilla && return 0 47 use vanilla && return 0
42 48
43 [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch 49 [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20