summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-devel/gcc/Manifest16
-rw-r--r--sys-devel/gcc/gcc-4.7.0.ebuild51
-rw-r--r--sys-devel/gcc/gcc-4.7.1.ebuild51
-rw-r--r--sys-devel/gcc/gcc-4.7.2-r1.ebuild51
-rw-r--r--sys-devel/gcc/gcc-4.7.3-r1.ebuild51
5 files changed, 220 insertions, 0 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 076a0b6..58a9efe 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -104,6 +104,22 @@ DIST gcc-4.6.3-piepatches-v0.5.2.tar.bz2 15002 SHA256 6606d47a8bbaa9cba0dd3b022c
DIST gcc-4.6.3-uclibc-patches-1.0.tar.bz2 3023 SHA256 4219a3582c5f98bf8437bfc3feb8c264f8aabd8078caaddef46dd38be33f089f SHA512 e0763dc7f3f94cb9ba6e34233d1a2fa6913918a5100dd029ae76b3b086529b8fafae3086dc22f3294f7d378e5548294264cb2faa80866e8a1ecc666bf60fe010 WHIRLPOOL 1744810d5928b1869929ebd608e1d817e4bcb4f666647bc873e9bdb41c65833a40745e58de5ef4beb98ef4ac539c8560733100a3bbee280c76525ee518ae88c8
DIST gcc-4.6.3.tar.bz2 71999439 SHA256 e8f5853d4eec2f5ebaf8a72ae4d53c436aacf98153b2499f8635b48c4718a093 SHA512 efedecc1a6d1c36eb91cbecfae9a4414d01051e99965de8a284d1164df3cad13fa99a6dd5a4ceaa03ef63a66884eaf729b49d602ac82088f788bab045ce1eb26 WHIRLPOOL a50059cc5ec5bcf7c7d7108e38087c2168ff0c6817d06b709be901a87007f84cd231ebae0752cdc94fa99c93ecd30ba810d3213aba9f3639292b1e831818ec0c
DIST gcc-4.7-20140607.tar.bz2 78944645 SHA256 056771cae9ad89f88695402bd4b3a1813381812af88bb660bde32197f5338363 SHA512 2b6db2c825b31697450d7cbff982b1e3eae38c42929c69e2e69d7e47644e2606d3210365abe7508441b08547b73d8433bcb2a614a4bda902fc2832192147c8e6 WHIRLPOOL 950736cc69326fa004b68d316bf04989ef5ac67d241efaa5ab97552f10aa1f6adf4e00aa09780bde80c229fb00982394f00d5263da286d03d523d2d57aa127a7
+DIST gcc-4.7.0-patches-1.2.tar.bz2 36167 SHA256 dd8d19f91a9481736f3506f367ed2e7233ee39edf969cf30a71c0dd3b05fab2c SHA512 fc7e1f9b620d6393c2ca4f8eeb3a4d8bcde2dc1071bb13d4ce89107dbd37edae4f657f0b84d58ee4bb45db0422172421aee09ebfadc502fd7dcb6655678ccebe WHIRLPOOL d9246a5946be0c636ec784d28f02f1afc6782586e06b042b932aadb316ccc369989e6aa9444b6f1650a9a385ffda815b142007fedf9c5474a2c23d6badfc274b
+DIST gcc-4.7.0-piepatches-v0.5.3.tar.bz2 14635 SHA256 8ae1d16dbb782b551a197c07c3cc12eb0ccd5d0e0c8f02c92bd678c3d96b62dd SHA512 69d9900d4edb01ac6278090f97186200625bb14f2fc0900f556cbea6d7c6d4732f56d453d3833fabf310846650657f00a46e75ea89bb441818ea50bfdd4ffc1f WHIRLPOOL 1d9c9c9c08ae4f143d9ee8abbf4ee7936a0acd085a4470bb25e923e2f2329a2860120e9516e66a277415541d441ebb0eea26d31971e1f9428da665ded6811b24
+DIST gcc-4.7.0-uclibc-patches-1.0.tar.bz2 3009 SHA256 a961197c952731cc6dec7b1467ec28ceab532b21b6406d4a87542ad678fd9066 SHA512 788625b58e0ff93f8b8f11ce11cd76f32123583e77a0c5f71bd46d56d30a4c8cd0bc1d8b9a549ebb27a13160982791d750145c68a96d9beaf7557a373068eeca WHIRLPOOL 4dc018a8a444db96e090498afd7e324393745bd8e5cf5428dc0accecf49545f1d9eba906036a103ec5ce37a06e2f9458b3129228e818b82750feb6c327f5bb61
+DIST gcc-4.7.0.tar.bz2 82518546 SHA256 a680083e016f656dab7acd45b9729912e70e71bbffcbf0e3e8aa1cccf19dc9a5 SHA512 24dab09c73e3c457d268e29d58b21a271c6cfabf93f8cd5261eec6e80ed40dd5455826f6f334cff0dee80891a626dc6ab33cd1eccc28716eb05835ea28cd57ce WHIRLPOOL acbe635ff840f8cf8d8f8eb14a3f950e7155cd2689dc2c6312d3769ee1c78ca49bc3410861874a588009a952fbdbd6d9309e912a7f32c694f020ad57b027b641
+DIST gcc-4.7.1-patches-1.5.tar.bz2 37153 SHA256 184c2bcb06b16809b5221f88758c518c91f9926d31612ef9366417fbc31bb41e SHA512 ae7b3fbaf5505162bac5b83ef9a14f5c8712899d0f0d13ab5659b82a759f84d744f521ea1e54a9624dbbefddb8c6818646665a9b1cf5c5d400811031fe942c03 WHIRLPOOL 33547a47afe5d1b0cd13fdf65a371caa7be84368a3faa22e75c729dc96a9a05d425c80b4e3251b13e1f25dd2710be15b7f9ca5f7c34ab0d3e0e9e8cd5bcf24bb
+DIST gcc-4.7.1-piepatches-v0.5.3.tar.bz2 14601 SHA256 26aee7449cd3cd642065a0860d723dbb8062066ad87a398241f61210c68513d9 SHA512 47e16c41ec6678f9960bd39b8f7f01a0a956ae112584c3aa8b7fa5107eef1b598eba191d5199280131399ff096a1b0d14c9b5799cdfee837451e48a3405b2374 WHIRLPOOL eee8d3b5fdb8c48c8e8dd3d81381406ceb1c44beb18f543b98142f9d4f87a81592f5fa7f19be19edb0cd14d8270ba82f22b3183d92a25698c68386bf45266820
+DIST gcc-4.7.1-uclibc-patches-1.0.tar.bz2 3027 SHA256 3094860e8235f906856bb2b25882ecfd11b5e675a31c6ae288c3563ae64d037b SHA512 d62ce8b72931316932778bc5a23233d182f37ade15d5ab059eec5d6b4e182b4de14561393d00ac1037fbff403f03e7c1693e754515b38f55f389293124f8e5f6 WHIRLPOOL 9acb42edc3f37a6aa6994bceb053dfb307597c2bc522ae4e1ce4b8412e056a20f9406e21064f5807df2bcb7089d2ee18242360190ce153cb22b512c34971392b
+DIST gcc-4.7.1.tar.bz2 82639660 SHA256 16093f6fa01732adf378d97fe338f113c933bdf56da22bf87c76beff13da406f SHA512 a8085284da733fcd0f8e1cd8c18e445c5c0c77b4c231b25f572dd3a0b5cd6aa59a0f1be24c70338b76c4aa29760aef9760e03cfbfe562f3b05405237ae57df89 WHIRLPOOL f1dc25e4a6a30f5c649759eb781f9f71324e729c034acf21687c8fa7c943dd396d9e2175b2035d9c72d0900366d9af9c616dca9c3d2c8ee957c9c407ca4e98e1
+DIST gcc-4.7.2-patches-1.6.tar.bz2 41164 SHA256 f24786a1108b49162574f3500b02848969df1f69299311b2d03d614b7235589d SHA512 7cfe9d10e9bf5ca9afa72ee04939412a4aa6c71a59b5cba2ad82aa675d80f1782ce7e451971a206c54ccd9a7e20f3040ac55448ebc63074078eb4ca60dfdbe5b WHIRLPOOL 2a2533c81964853d6eefacb87677951280041a4b6aeefed9baadeb4de423e13ee667a374636b03c2869f17f17870bab09b94c25c3c8fe7bd3d71a909114266fb
+DIST gcc-4.7.2-piepatches-v0.5.5.tar.bz2 15347 SHA256 ea7b7f7af30569f98b3cd37459b257e8bc96ef4691841779b28e93a96764a8c1 SHA512 1e3d20c38af31953b3a82c3f2204b9cc73a8bc9c80f3b3300106d1f1b6d299eb5ae5f67839fdcc690b4b8510d400053f431a1ef4850c9a4d2ca25db68daf35b6 WHIRLPOOL a22e77f63306fab350749b0778002e0cf610e300ef960631013aa545569385faa9ed1787fcdec5cf0dec89ed7dc4c9dc3d7dec28bbdb9665c0c957ba6dfa67de
+DIST gcc-4.7.2-uclibc-patches-1.0.tar.bz2 3022 SHA256 507e2c9b7004122a6cf5409825f7c06da8fc63e1a77dc03f7a6ed2a7888a9311 SHA512 43018bef164fd1c4c2ab4e72f13d92044dfde65d6286046a761433d1a7bbc0ff1b4b0bcd770e07b6d4a17daf6dd974c9ec8f7a3e4d631f4af554b77bb1688206 WHIRLPOOL c08aed61480b1eab6b86356ecfff7fbb592820f6498f4fbed9161e859fa257aececd5e9ceb83495a8a0bb4c6f6f457f4c9125a079757324b84dc48e81cb2af14
+DIST gcc-4.7.2.tar.bz2 82884636 SHA256 8a9283d7010fb9fe5ece3ca507e0af5c19412626384f8a5e9434251ae100b084 SHA512 689ce92d0c93e5ca5268d9757acffc6e5a7931fc7ad99ee9beefa6ce02d201ed9dade08240cb5623525e19362f90a245792e95d4e90b067fee61013a03288e32 WHIRLPOOL 730d32f9e9d19683ea169992ee82a3016c806dab16577facbb6e5eab4707706f139cf6b15b8aae44f85c88d71c308ddb1c110dca99dd46692d5bad66e05ad657
+DIST gcc-4.7.3-patches-1.5.tar.bz2 44129 SHA256 945ae10e22326ecf77ebfc145da06c6502aa0487c89695198cf5cefaef9065f0 SHA512 3ddbd15faab4f25d7ccc15d1d5c276cb5fbbac9472e5b967261d518c6d94a37c41d16c4ee720d836a2874b0a1a6a92e9e19a8ea4ecf738e1061a4e6fb6457284 WHIRLPOOL 8e6bc88b03aaf08ec4c70127a4464e595651e77f4671ae68bc494bad88587596ff26d2d7a8c6eccfd1d911a688c7ffdd3fea6c8a0ed7a04d655c351d213710ee
+DIST gcc-4.7.3-piepatches-v0.5.5.tar.bz2 15378 SHA256 b6f6b6709e7b13f6c05090f3bf68f3a64db19d52593a870cc7717c5c128b05a2 SHA512 d0189d2e4049d471dedaddcba319fe2c2b29855f7b33e84b26051504ead2936c852ef7870a1d19d755bb343c9b121b0ce5295665ab4ff1e448436bd448c08e1f WHIRLPOOL ccceedb41d48da69f5a423b6b73436c9fbb7b1e382456abfcef954f25666e1b7caf926bc5eb977e934502359a356d623c439d80825e87d9fe46b5ae78a74bde3
+DIST gcc-4.7.3-uclibc-patches-1.0.tar.bz2 3013 SHA256 731c518f31db8debd08bea92db8e3bf1e9962552909407452dc2ac3c491cf11c SHA512 6119159300e76be87732f2a44b1a9388228235d7832370dbae531c2c96694ea42ed4c75acf7abca98ec0035fbc50a8bf84225574505358c2739e64b0f3fd6a95 WHIRLPOOL 4a874a5684937907720aa5a4a1dbc237aa7d985292befd1c591cf0789c71e0da22ced5b7f7e049731bc2d6496e959cbe3c9010047ceb1b05675e61865004c71a
+DIST gcc-4.7.3.tar.bz2 82904224 SHA256 2f7c37eb4fc14422ff2358a9ef59c974a75ab41204ef0e49fc34ab1d8981a9c3 SHA512 5671a2dd3b6ac0d23f305cb11a796aebd823c1462b873136b412e660966143f4e07439bd8926c1443b78442beb6ae370ef91d819ec615920294875b722b7b0bd WHIRLPOOL cb3408e3e251833f38ae7cf2388a1ddce864614fe1c68de9729a1a9a1f8f028ab92c0f2b863e7fa3ac16dbf443306ac864e74c9cce90690230c081ee2ac309d3
DIST gcc-4.8-20150101.tar.bz2 82115437 SHA256 78296abbceeb20295aa667d0b95fd232532252a4e1c3f9112f14d15a77d10356 SHA512 e9cfd099506425acfe17aa589eca5dbd44186defc7be2f9b6e770cd16982802d95ebbcf11f91bcc7b61a345cd7119c0e592c447dcb914755a77e27c60c4e35f2 WHIRLPOOL 27a8e5ba7393a9d1ff9f48b7cbee9bd9a57008909bf2ad8a4a671fca863fe203ece3381a652c42eb168f10d64a7c044a837b3ca6a00fa133959d31c44dee7463
DIST gcc-4.8-20150108.tar.bz2 82113167 SHA256 952c16799447d4e785e14cf8795849e133f08a9065c0bd680127b47ec2e4eced SHA512 1c6d5f6678848ece67d49b2e43716d1c6259282582f61916bcecbeb4249ea5dc9217e06fb36cd5fd16e9d90f7216ce01b7acbc45ba84e6ffb3fc4017052ec518 WHIRLPOOL c95091279938a4b2dbc8e8b879ba51042ade91ce293e0495a14674e261fbd45b0e3f0f81d7c0ec5364e2d68520acd6163bacacdbb545fad452c15c3f9272b0de
DIST gcc-4.8-20150115.tar.bz2 82111134 SHA256 b626017665c1f08c0b8d659ff00a55029054c2d6b77abf8129fd01b41eab0745 SHA512 1cf86033f766400462ceff65b0c16d4de006c3e412d667ace178239b35e03677d78c588dba4b1ec5963f51b6a4c853024813f82343480f1130bcbfa67edf30b2 WHIRLPOOL 21ba315b54b0d0dbe97df118b65055a56da3bf9fd065fad4b839868b452ef9d10a9e73b9ce1831360149539f8953b27d4b436011d86bd88ef45e77fedb752228
diff --git a/sys-devel/gcc/gcc-4.7.0.ebuild b/sys-devel/gcc/gcc-4.7.0.ebuild
new file mode 100644
index 0000000..58f7e3b
--- /dev/null
+++ b/sys-devel/gcc/gcc-4.7.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.7.0.ebuild,v 1.16 2015/05/05 06:53:03 vapier Exp $
+
+EAPI="5"
+
+PATCH_VER="1.2"
+UCLIBC_VER="1.0"
+
+# Hardened gcc 4 stuff
+PIE_VER="0.5.3"
+SPECS_VER="0.2.0"
+SPECS_GCC_VER="4.4.3"
+# arch/libc configurations known to be stable with {PIE,SSP}-by-default
+PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
+PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
+SSP_STABLE="amd64 x86 ppc ppc64 arm"
+# uclibc need tls and nptl support for SSP support
+# uclibc need to be >= 0.9.33
+SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
+#end Hardened stuff
+
+inherit eutils toolchain
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -amd64-fbsd -x86-fbsd"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ elibc_glibc? ( >=sys-libs/glibc-2.8 )
+ >=${CATEGORY}/binutils-2.18"
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
+fi
+
+src_prepare() {
+ if has_version '<sys-libs/glibc-2.12' ; then
+ ewarn "Your host glibc is too old; disabling automatic fortify."
+ ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
+ EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
+ fi
+
+ # drop the x32 stuff in the next patchset #543578
+ EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
+
+ toolchain_src_prepare
+
+ use vanilla && return 0
+
+ [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
+}
diff --git a/sys-devel/gcc/gcc-4.7.1.ebuild b/sys-devel/gcc/gcc-4.7.1.ebuild
new file mode 100644
index 0000000..7ada109
--- /dev/null
+++ b/sys-devel/gcc/gcc-4.7.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.7.1.ebuild,v 1.17 2015/05/05 06:53:03 vapier Exp $
+
+EAPI="5"
+
+PATCH_VER="1.5"
+UCLIBC_VER="1.0"
+
+# Hardened gcc 4 stuff
+PIE_VER="0.5.3"
+SPECS_VER="0.2.0"
+SPECS_GCC_VER="4.4.3"
+# arch/libc configurations known to be stable with {PIE,SSP}-by-default
+PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
+PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
+SSP_STABLE="amd64 x86 ppc ppc64 arm"
+# uclibc need tls and nptl support for SSP support
+# uclibc need to be >= 0.9.33
+SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
+#end Hardened stuff
+
+inherit eutils toolchain
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -amd64-fbsd -x86-fbsd"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ elibc_glibc? ( >=sys-libs/glibc-2.8 )
+ >=${CATEGORY}/binutils-2.18"
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
+fi
+
+src_prepare() {
+ if has_version '<sys-libs/glibc-2.12' ; then
+ ewarn "Your host glibc is too old; disabling automatic fortify."
+ ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
+ EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
+ fi
+
+ # drop the x32 stuff in the next patchset #543578
+ EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
+
+ toolchain_src_prepare
+
+ use vanilla && return 0
+
+ [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
+}
diff --git a/sys-devel/gcc/gcc-4.7.2-r1.ebuild b/sys-devel/gcc/gcc-4.7.2-r1.ebuild
new file mode 100644
index 0000000..7f534aa
--- /dev/null
+++ b/sys-devel/gcc/gcc-4.7.2-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.7.2-r1.ebuild,v 1.12 2015/05/05 06:53:03 vapier Exp $
+
+EAPI="5"
+
+PATCH_VER="1.6"
+UCLIBC_VER="1.0"
+
+# Hardened gcc 4 stuff
+PIE_VER="0.5.5"
+SPECS_VER="0.2.0"
+SPECS_GCC_VER="4.4.3"
+# arch/libc configurations known to be stable with {PIE,SSP}-by-default
+PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
+PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
+SSP_STABLE="amd64 x86 ppc ppc64 arm"
+# uclibc need tls and nptl support for SSP support
+# uclibc need to be >= 0.9.33
+SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
+#end Hardened stuff
+
+inherit eutils toolchain
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -amd64-fbsd -x86-fbsd"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ elibc_glibc? ( >=sys-libs/glibc-2.8 )
+ >=${CATEGORY}/binutils-2.18"
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
+fi
+
+src_prepare() {
+ if has_version '<sys-libs/glibc-2.12' ; then
+ ewarn "Your host glibc is too old; disabling automatic fortify."
+ ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
+ EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
+ fi
+
+ # drop the x32 stuff in the next patchset #543578
+ EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
+
+ toolchain_src_prepare
+
+ use vanilla && return 0
+
+ [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
+}
diff --git a/sys-devel/gcc/gcc-4.7.3-r1.ebuild b/sys-devel/gcc/gcc-4.7.3-r1.ebuild
new file mode 100644
index 0000000..465e973
--- /dev/null
+++ b/sys-devel/gcc/gcc-4.7.3-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.7.3-r1.ebuild,v 1.21 2015/03/17 06:41:31 vapier Exp $
+
+EAPI="2"
+
+PATCH_VER="1.5"
+UCLIBC_VER="1.0"
+
+# Hardened gcc 4 stuff
+PIE_VER="0.5.5"
+SPECS_VER="0.2.0"
+SPECS_GCC_VER="4.4.3"
+# arch/libc configurations known to be stable with {PIE,SSP}-by-default
+PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
+PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
+SSP_STABLE="amd64 x86 ppc ppc64 arm"
+# uclibc need tls and nptl support for SSP support
+# uclibc need to be >= 0.9.33
+SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm"
+#end Hardened stuff
+
+inherit eutils toolchain
+
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 -amd64-fbsd -x86-fbsd"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ elibc_glibc? ( >=sys-libs/glibc-2.8 )
+ >=${CATEGORY}/binutils-2.18"
+
+if [[ ${CATEGORY} != cross-* ]] ; then
+ PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
+fi
+
+src_prepare() {
+ if has_version '<sys-libs/glibc-2.12' ; then
+ ewarn "Your host glibc is too old; disabling automatic fortify."
+ ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
+ EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
+ fi
+
+ # drop the x32 stuff in the next patchset #543578
+ EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch"
+
+ toolchain_src_prepare
+
+ use vanilla && return 0
+
+ [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
+}