1 |
commit: 9974466e8a1fe56ce3e6e0ec99f3c4c289d090b3 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 13 11:34:48 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 13 11:34:48 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=9974466e |
7 |
|
8 |
sys-devel/gcc: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.62-prefix, Repoman-2.3.12 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
sys-devel/gcc/Manifest | 5 - |
14 |
sys-devel/gcc/gcc-4.7.2-r1.ebuild | 204 -------------------------------------- |
15 |
sys-devel/gcc/gcc-7.3.0-r3.ebuild | 92 ----------------- |
16 |
sys-devel/gcc/metadata.xml | 2 - |
17 |
4 files changed, 303 deletions(-) |
18 |
|
19 |
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest |
20 |
index 431d506cd4..6a5dc62877 100644 |
21 |
--- a/sys-devel/gcc/Manifest |
22 |
+++ b/sys-devel/gcc/Manifest |
23 |
@@ -7,10 +7,6 @@ DIST gcc-4.2.4-patches-1.3.tar.bz2 24723 BLAKE2B 55b9d4f1ca80327f14fff35d6184e91 |
24 |
DIST gcc-4.2.4-uclibc-patches-1.0.tar.bz2 19167 BLAKE2B bf2bcc9ece9096cf7fda9999c56073774072fa03e5dbf389a617888b2269bc79a7cfb68a6e26da66dedce9f954a1766ed21bbdd907b747e9fb5ea3a0fbbb6474 SHA512 5545cfe6bfa7ab9a69a474cc051cc8744380077dcc193afefeb455e959e408a5e4dfd1adde5357886c7f598835400273ef80ad5c14976c0552b44f5cd48704ed |
25 |
DIST gcc-4.2.4.tar.bz2 44025458 BLAKE2B 1d9645298dbbb1aba7b2957acf5b9839bd702a85120aa82d4cada0e4ea68a1d633422d8fcedc405504768e2f932e4b9d1a70a86da0b8efa5fc923b786ebc259f SHA512 c6e3e4fce1d27d0c56ab24f4809367d9329b620b7c124e88de190f2ea2ae57b5e06d0bda85c5a74237a4f94ddba53dc91faea0611fff7b19ad720edc312cb0d9 |
26 |
DIST gcc-4.4.3-specs-0.2.0.tar.bz2 2004 BLAKE2B 96f5ba2028bc6e0ef71e009857c37118a54d13d30de24d697c85e5772f9f2b7853615648cf2e4ee81d8385f6518c64588c0b56675c00f95ef39fca2a808f075e SHA512 779ecb0a064d2138b54569c8ae501975b8a6b72e5a3acbf8597619a8db77ee42ef9b0e62608d5192a15e4393e7dfc009bb50b994782236faa744b2c46b5fe517 |
27 |
-DIST gcc-4.7.2-patches-1.6.tar.bz2 41164 BLAKE2B 0acdc0be3ebaa13f92ab98091db9b7184e614792249ca39b6bebf44fefec00419d537847921871f88d779c16a9cef062f57d8124c008f6294bf118bbbbe40170 SHA512 7cfe9d10e9bf5ca9afa72ee04939412a4aa6c71a59b5cba2ad82aa675d80f1782ce7e451971a206c54ccd9a7e20f3040ac55448ebc63074078eb4ca60dfdbe5b |
28 |
-DIST gcc-4.7.2-piepatches-v0.5.5.tar.bz2 15347 BLAKE2B bca47c3da67c3dbec6090507ad3979f1abed7789af8bf319a1f2be002d479f1fde58bcb9e44276728c7afcbaef53eae73880069c953e0c3e825bde838fb42687 SHA512 1e3d20c38af31953b3a82c3f2204b9cc73a8bc9c80f3b3300106d1f1b6d299eb5ae5f67839fdcc690b4b8510d400053f431a1ef4850c9a4d2ca25db68daf35b6 |
29 |
-DIST gcc-4.7.2-uclibc-patches-1.0.tar.bz2 3022 BLAKE2B 411ed991e0af297500288c2b8810c1791a1b91ac7ee457fdfe5398a503d820437e1ff4a79ec0cbfe7a8f32325be2fddec884241a02ec2c0b19bb47dd493c82fb SHA512 43018bef164fd1c4c2ab4e72f13d92044dfde65d6286046a761433d1a7bbc0ff1b4b0bcd770e07b6d4a17daf6dd974c9ec8f7a3e4d631f4af554b77bb1688206 |
30 |
-DIST gcc-4.7.2.tar.bz2 82884636 BLAKE2B 0a130b65822088c636989fb2baad175bb6af19cd4aaed41dc47bd293dc3487f261ca8bd470e6f4b0ea8266449a1765a58614b4c699947d1e66dfd63a84c876a9 SHA512 689ce92d0c93e5ca5268d9757acffc6e5a7931fc7ad99ee9beefa6ce02d201ed9dade08240cb5623525e19362f90a245792e95d4e90b067fee61013a03288e32 |
31 |
DIST gcc-4.7.3-patches-1.4.tar.bz2 43148 BLAKE2B 9b7472c799a8fddd59f0e18d638aa97def9049e3a0acc84712337b231a0dcad947ac41302e29b3e4e9d1197e41629a5c198ce102cf508ab0a4efb23276a788e7 SHA512 6dfc5b405e2eca70642f42974d7d3183ff8f0eed3e9f29fbf197e8959bc1795a1ba54df99e4f73df1017332f46bdf3d1c10d4b0f89fea71d604dd5ebda488c22 |
32 |
DIST gcc-4.7.3-piepatches-v0.5.5.tar.bz2 15378 BLAKE2B 94c026b5878c59d9c50ae61285b0b1d6e9fd02b9aebe1f92996e6c4475626a1bd7beb37582e99eb624fd9a8a8354ae293c86feb40a9169f729fd38f332fc8a06 SHA512 d0189d2e4049d471dedaddcba319fe2c2b29855f7b33e84b26051504ead2936c852ef7870a1d19d755bb343c9b121b0ce5295665ab4ff1e448436bd448c08e1f |
33 |
DIST gcc-4.7.3-uclibc-patches-1.0.tar.bz2 3013 BLAKE2B 73389fcedfe6209d67551bc768922ff7090d817020ac2d4e62b40fc8a167569e2dd2f17ab76870b0e3f117486afd07ce724fd043c680d67de5dad715ca76d536 SHA512 6119159300e76be87732f2a44b1a9388228235d7832370dbae531c2c96694ea42ed4c75acf7abca98ec0035fbc50a8bf84225574505358c2739e64b0f3fd6a95 |
34 |
@@ -30,7 +26,6 @@ DIST gcc-5.4.0.tar.bz2 95661481 BLAKE2B bf882acfa28cc1064cddd21e25332fff6bc65505 |
35 |
DIST gcc-6.4.0-patches-1.4.tar.bz2 13451 BLAKE2B 9934558989405141ae22c941fc4f5b4fb9dc425b0f35b458ab9c2704b8fbf61975a93c3d0e4c9ebde0cc7f935be868e9ad7ebdd78441235b81316fcca339fc42 SHA512 6d94f1ac196deabc8fcd30215bcbec4bbb19924929ef11c3000c8bfa189c59d87f95d37ac8cb0ff2d59cc2fc632b5767dbb80cbe7a354084cb2bc5e14cfbabb2 |
36 |
DIST gcc-6.4.0-uclibc-patches-1.0.tar.bz2 1586 BLAKE2B 21f97a9e1c349b3d52def092a03e5a90533521da9af586be7ee527594f2d65745491ff8758d88c99a7ac215bde7ebf4e47a0a36cfcd7e66f70e0bebf2dadd922 SHA512 266dbe2bb53d892a24cd752d5c6833ea33f8df8b11b0471700ee53865243cd41f412f9bea8a369b474c9cd1435faff2e03902c7cb5638dd3ddcaa665aa2ec522 |
37 |
DIST gcc-6.4.0.tar.xz 76156220 BLAKE2B 2018c338b28ea644cdd1b327cb0dfe7ee9aa2010357c93f7e71969f587c58d3fdfa2bb4c82a309490c48bc86924400022fa93f41dc6c4345878d1bc1d8204265 SHA512 02c60e54527c7adf584798d5251f8a0b80c93d5deafce82501b2c28e6692e0bd783927bbfc4bc527a863c0cccc025150a34740a9e29badb02d4b48e56a8aba90 |
38 |
-DIST gcc-7.3.0-patches-1.4.tar.bz2 8238 BLAKE2B 72a5dcb046558c8f5c3a75040fe24ce1106c43af7510d6febf667b4377cb9caea5ebe9e1287af90e4ebfffa3f3f22ca85f533acf57c2e2d896f92adc1659b9f5 SHA512 24ed0d82240426efb111bbf48913b96fdc824ae3aa5a653298a726ebe64a40791f484229bbab9cc58f73d658e0b4b83ccd13081cfbea6e1673ef1d076cca3b33 |
39 |
DIST gcc-7.3.0-patches-1.8.tar.bz2 14435 BLAKE2B 3e5c1abad56ccd6e0aa7739cb7cd651ec07ef9bf25be554343f1fa0444f251de41bde5fe6f8bb9e85e3f7a5cf8b2b83515647d93d62f338fa7843581fcaff2f8 SHA512 4d9d76b3d47f1af4f23cae15278d165b22065a3d1512323d1e31b5e0cb47e4654733dc43fa11906a3bd18e827621c9a5ec62b73563f8e5ead663c29f7d0d7345 |
40 |
DIST gcc-7.3.0.tar.xz 62462388 BLAKE2B dc8f132b21bd0543c3d9dd17557038aafe65675aa73c540954234a3c972b4c31c939149bd50183d072ab6c8d16919e19daeaaffd619ce2ccd62dbdf9a5bb3302 SHA512 ad41a7e4584e40e92cdf860bc0288500fbaf5dfb7e8c3fcabe9eba809c87bcfa85b46c19c19921b0cdf6d05483faede8287bb9ea120c0d1559449a70e602c8d4 |
41 |
DIST gcc-7.4.0-patches-1.1.tar.bz2 8778 BLAKE2B 52b02b3c619b99912ee254599788abebe3963cf85e49b56166069318e340a8e271d767e82798e6062fc2a042a86a88da66ab95f2d9e42933ff17688d616a903f SHA512 02ec2eb2460e24cf46f7a04ca3b80ca120719389a54a740070e991d9c96b6fd55d1fa04eb4249fd3043edc9c0f6519b5babcce76036cd0146183512aaae2d573 |
42 |
|
43 |
diff --git a/sys-devel/gcc/gcc-4.7.2-r1.ebuild b/sys-devel/gcc/gcc-4.7.2-r1.ebuild |
44 |
deleted file mode 100644 |
45 |
index d0bd2363e7..0000000000 |
46 |
--- a/sys-devel/gcc/gcc-4.7.2-r1.ebuild |
47 |
+++ /dev/null |
48 |
@@ -1,204 +0,0 @@ |
49 |
-# Copyright 1999-2017 Gentoo Foundation |
50 |
-# Distributed under the terms of the GNU General Public License v2 |
51 |
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.7.2-r1.ebuild,v 1.8 2014/01/19 01:51:34 dirtyepic Exp $ |
52 |
- |
53 |
-EAPI="5" |
54 |
- |
55 |
-PATCH_VER="1.6" |
56 |
-UCLIBC_VER="1.0" |
57 |
- |
58 |
-# Hardened gcc 4 stuff |
59 |
-PIE_VER="0.5.5" |
60 |
-SPECS_VER="0.2.0" |
61 |
-SPECS_GCC_VER="4.4.3" |
62 |
-# arch/libc configurations known to be stable with {PIE,SSP}-by-default |
63 |
-PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64" |
64 |
-PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64" |
65 |
-SSP_STABLE="amd64 x86 ppc ppc64 arm |
66 |
-# uclibc need tls and nptl support for SSP support" |
67 |
-# uclibc need to be >= 0.9.33 |
68 |
-SSP_UCLIBC_STABLE="x86 amd64 ppc ppc64 arm" |
69 |
-#end Hardened stuff |
70 |
- |
71 |
-inherit eutils toolchain flag-o-matic |
72 |
- |
73 |
-DESCRIPTION="The GNU Compiler Collection." |
74 |
- |
75 |
-LICENSE="GPL-3+ LGPL-3+ || ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.3+" |
76 |
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
77 |
- |
78 |
-RDEPEND="" |
79 |
-DEPEND="${RDEPEND} |
80 |
- !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.8 ) ) |
81 |
- kernel_Darwin? ( ${CATEGORY}/binutils-apple ) |
82 |
- kernel_AIX? ( ${CATEGORY}/native-cctools ) |
83 |
- kernel_linux? ( >=${CATEGORY}/binutils-2.18 )" |
84 |
- |
85 |
-if [[ ${CATEGORY} != cross-* ]] ; then |
86 |
- PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.8 ) )" |
87 |
-fi |
88 |
- |
89 |
-src_prepare() { |
90 |
- if has_version '<sys-libs/glibc-2.12' ; then |
91 |
- ewarn "Your host glibc is too old; disabling automatic fortify." |
92 |
- ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315" |
93 |
- EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch" |
94 |
- fi |
95 |
- # Fedora/RedHat ships glibc-2.15+ with some nasty warnings that cause |
96 |
- # configure checks for most system headers to fail, resulting in bugs |
97 |
- # compiling e.g. gcc itself, bug #433333 |
98 |
- if [[ -e /usr/include/features.h ]] ; then |
99 |
- grep -qF "_FORTIFY_SOURCE requires compiling with optimization" \ |
100 |
- /usr/include/features.h && \ |
101 |
- EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch" |
102 |
- fi |
103 |
- |
104 |
- # drop the x32 stuff once 4.7 goes stable |
105 |
- if [[ ${CTARGET} != x86_64* ]] || ! has x32 $(get_all_abis TARGET) ; then |
106 |
- EPATCH_EXCLUDE+=" 90_all_gcc-4.7-x32.patch" |
107 |
- fi |
108 |
- |
109 |
- toolchain_src_prepare |
110 |
- |
111 |
- use vanilla && return 0 |
112 |
- |
113 |
- # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60221 |
114 |
- epatch "${FILESDIR}"/gcc-4.7.2-cleanup-empty-eh-o0.patch |
115 |
- |
116 |
- # make sure solaris-x64 doesn't misdetect tls support, bug #505446 |
117 |
- epatch "${FILESDIR}"/4.7.2/solaris-x64-tls-gnu-as.patch |
118 |
- |
119 |
- # make sure 64-bits native targets don't screw up the linker paths |
120 |
- epatch "${FILESDIR}"/4.7.1/solaris-searchpath.patch |
121 |
- epatch "${FILESDIR}"/no-libs-for-startfile.patch |
122 |
- if use prefix; then |
123 |
- epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch |
124 |
- # try /usr/lib32 in 32bit profile on x86_64-linux (needs |
125 |
- # --enable-multilib), but this does make sense in prefix only |
126 |
- epatch "${FILESDIR}"/${PN}-4.7.2-linux-x86-on-amd64.patch |
127 |
- fi |
128 |
- |
129 |
- # make it have correct install_names on Darwin |
130 |
- epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch |
131 |
- |
132 |
- if [[ ${CHOST} == *-mint* ]] ; then |
133 |
- epatch "${FILESDIR}"/4.3.2/${PN}-4.3.2-mint3.patch |
134 |
- epatch "${FILESDIR}"/4.7.2/mint1.patch |
135 |
- epatch "${FILESDIR}"/4.4.1/${PN}-4.4.1-mint3.patch |
136 |
- epatch "${FILESDIR}"/4.7.2/mint2.patch |
137 |
- epatch "${FILESDIR}"/4.7.2/mint3.patch |
138 |
- epatch "${FILESDIR}"/4.7.2/pr52391.patch |
139 |
- epatch "${FILESDIR}"/4.7.2/mint-unroll.patch |
140 |
- epatch "${FILESDIR}"/4.7.2/pr52773.patch |
141 |
- epatch "${FILESDIR}"/4.7.2/pr52714.patch |
142 |
- fi |
143 |
- |
144 |
- # Always behave as if -pthread were passed on AIX and HPUX (#266548) |
145 |
-# fails, likely still necessary though |
146 |
-# epatch "${FILESDIR}"/4.5.1/aix-force-pthread.patch |
147 |
-# epatch "${FILESDIR}"/4.5.1/ia64-hpux-always-pthread.patch |
148 |
- |
149 |
- [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch |
150 |
-} |
151 |
- |
152 |
-src_configure() { |
153 |
- case ${CTARGET}:" ${USE} " in |
154 |
- powerpc*-darwin*) |
155 |
- # bug #381179 |
156 |
- filter-flags "-mcpu=*" "-mtune=*" |
157 |
- ;; |
158 |
- *-mint*) |
159 |
- EXTRA_ECONF="${EXTRA_ECONF} --enable-multilib" |
160 |
- ;; |
161 |
- *-solaris*) |
162 |
- # todo: some magic for native vs. GNU linking? |
163 |
- EXTRA_ECONF="${EXTRA_ECONF} --with-gnu-ld --with-gnu-as" |
164 |
- ;; |
165 |
- *-aix*) |
166 |
- # AIX doesn't use GNU binutils, because it doesn't produce usable |
167 |
- # code |
168 |
- EXTRA_ECONF="${EXTRA_ECONF} --without-gnu-ld --without-gnu-as" |
169 |
- append-ldflags -Wl,-bbigtoc,-bmaxdata:0x10000000 # bug#194635 |
170 |
- ;; |
171 |
- *-interix*) |
172 |
- # disable usage of poll() on interix, since poll() only |
173 |
- # works on the /proc filesystem (.......) |
174 |
- export glibcxx_cv_POLL=no |
175 |
- |
176 |
- # if using the old system as, gcc's configure script fails |
177 |
- # to detect that as cannot handle .lcomm with alignment. |
178 |
- # on interix, it is rather easy to detect the as, since there |
179 |
- # is only _one_ build of it with a fixed date in the version |
180 |
- # header... |
181 |
- if as --version | grep 20021111 > /dev/null 2>&1; then |
182 |
- einfo "preventing gcc from detecting .lcomm alignment option in interix system as." |
183 |
- export gcc_cv_as_lcomm_with_alignment=no |
184 |
- fi |
185 |
- ;; |
186 |
- i[34567]86-*-linux*:*" prefix "*) |
187 |
- # to allow the linux-x86-on-amd64.patch become useful, we need |
188 |
- # to enable multilib, even if there is just one multilib option. |
189 |
- EXTRA_ECONF="${EXTRA_ECONF} --enable-multilib" |
190 |
- if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then |
191 |
- # we might be on x86_64-linux, but don't do cross-compile, so |
192 |
- # tell the host-compiler to really create 32bits (for stage1) |
193 |
- # (real x86-linux-gcc also accept -m32). |
194 |
- tc-export CC CXX |
195 |
- CC="${CC} -m32" |
196 |
- CXX="${CC} -m32" |
197 |
- fi |
198 |
- ;; |
199 |
- esac |
200 |
- |
201 |
- # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at |
202 |
- # least on Solaris, and AIX /bin/sh is ways too slow, |
203 |
- # so force it to use $BASH (that portage uses) - it can't be EPREFIX |
204 |
- # in case that doesn't exist yet |
205 |
- export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}" |
206 |
- toolchain_src_configure |
207 |
-} |
208 |
- |
209 |
-src_install() { |
210 |
- toolchain_src_install |
211 |
- |
212 |
- if [[ ${CTARGET} == *-interix* ]] && ! is_crosscompile; then |
213 |
- # interix delivers libdl and dlfcn.h with gcc-3.3. |
214 |
- # Since those parts are perfectly usable by this gcc (and |
215 |
- # required for example by perl), we simply can reuse them. |
216 |
- # As libdl is in /usr/lib, we only need to copy dlfcn.h. |
217 |
- # When cross compiling for interix once, ensure that sysroot |
218 |
- # contains dlfcn.h. |
219 |
- cp /opt/gcc.3.3/include/dlfcn.h "${ED}${INCLUDEPATH}" \ |
220 |
- || die "Cannot gain /opt/gcc.3.3/include/dlfcn.h" |
221 |
- fi |
222 |
- |
223 |
- if [[ ${CTARGET} == *-interix3* ]]; then |
224 |
- # interix 3.5 has no stdint.h and no inttypes.h. This breaks |
225 |
- # so many packages, that i just install interix 5.2's stdint.h |
226 |
- # which should be ok. |
227 |
- cp "${FILESDIR}"/interix-3.5-stdint.h "${ED}${INCLUDEPATH}/stdint.h" \ |
228 |
- || die "Cannot install stdint.h for interix3" |
229 |
- fi |
230 |
- |
231 |
- # create a small profile.d script, unsetting some of the bad |
232 |
- # environment variables that the sustem could set from the outside. |
233 |
- # (GCC_SPECS, GCC_EXEC_PREFIX, CPATH, LIBRARY_PATH, LD_LIBRARY_PATH, |
234 |
- # C_INCLUDE_PATH, CPLUS_INCLUDE_PATH, LIBPATH, SHLIB_PATH, LIB, INCLUDE, |
235 |
- # LD_LIBRARY_PATH_32, LD_LIBRARY_PATH_64). |
236 |
- # Maybe there is a better location for doing this ...? Feel free to move |
237 |
- # it there if you want to. |
238 |
- |
239 |
- cat > "${T}"/00-gcc-paths.sh <<- _EOF |
240 |
- #!/bin/env bash |
241 |
- # GCC specific variables |
242 |
- unset GCC_SPECS GCC_EXEC_PREFIX |
243 |
- # include path variables |
244 |
- unset CPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH INCLUDE |
245 |
- # library path variables |
246 |
- unset LIBRARY_PATH LD_LIBRARY_PATH LIBPATH SHLIB_PATH LIB LD_LIBRARY_PATH_32 LD_LIBRARY_PATH_64 |
247 |
- _EOF |
248 |
- |
249 |
- insinto /etc/profile.d |
250 |
- doins "${T}"/00-gcc-paths.sh |
251 |
- |
252 |
-} |
253 |
|
254 |
diff --git a/sys-devel/gcc/gcc-7.3.0-r3.ebuild b/sys-devel/gcc/gcc-7.3.0-r3.ebuild |
255 |
deleted file mode 100644 |
256 |
index 6ffede9695..0000000000 |
257 |
--- a/sys-devel/gcc/gcc-7.3.0-r3.ebuild |
258 |
+++ /dev/null |
259 |
@@ -1,92 +0,0 @@ |
260 |
-# Copyright 1999-2018 Gentoo Foundation |
261 |
-# Distributed under the terms of the GNU General Public License v2 |
262 |
- |
263 |
-EAPI="5" |
264 |
- |
265 |
-PATCH_VER="1.4" |
266 |
-#UCLIBC_VER="1.0" |
267 |
-CYGWINPORTS_GITREV="d83e3d1ac0a9adfacdf120f013870472e8e712c3" # gcc-7.3.0 |
268 |
- |
269 |
-inherit eutils toolchain flag-o-matic |
270 |
- |
271 |
-KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
272 |
- |
273 |
-RDEPEND="" |
274 |
-DEPEND="${RDEPEND} |
275 |
- !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) ) |
276 |
- kernel_linux? ( >=${CATEGORY}/binutils-2.20 ) |
277 |
- kernel_Darwin? ( ${CATEGORY}/binutils-apple ) |
278 |
- kernel_AIX? ( ${CATEGORY}/native-cctools )" |
279 |
- |
280 |
-if [[ ${CATEGORY} != cross-* ]] ; then |
281 |
- PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )" |
282 |
-fi |
283 |
- |
284 |
-src_prepare() { |
285 |
- toolchain_src_prepare |
286 |
- |
287 |
- use vanilla && return 0 |
288 |
- |
289 |
- # make sure 64-bits native targets don't screw up the linker paths |
290 |
- epatch "${FILESDIR}"/no-libs-for-startfile.patch |
291 |
- if use prefix; then |
292 |
- epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch |
293 |
- # try /usr/lib32 in 32bit profile on x86_64-linux (needs |
294 |
- # --enable-multilib), but this does make sense in prefix only |
295 |
- epatch "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch |
296 |
- fi |
297 |
- |
298 |
- # make it have correct install_names on Darwin |
299 |
- epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch |
300 |
- |
301 |
- # fix for powerpc-darwin, from upstream, fixed for 7.4 |
302 |
- epatch "${FILESDIR}"/${P}-powerpc-darwin.patch |
303 |
-} |
304 |
- |
305 |
-src_configure() { |
306 |
- local myconf=() |
307 |
- case ${CTARGET}:" ${USE} " in |
308 |
- powerpc*-darwin*) |
309 |
- # bug #381179 |
310 |
- filter-flags "-mcpu=*" "-mtune=*" |
311 |
- # bug #657522 |
312 |
- # A bug in configure checks whether -no-pie works, but the |
313 |
- # compiler doesn't pass -no-pie onto the linker if -fno-PIE |
314 |
- # isn't passed, so the configure check always finds -no-pie |
315 |
- # is accepted. (Likewise, when -fno-PIE is passed, the |
316 |
- # compiler passes -no_pie onto the linker.) |
317 |
- # Since our linker doesn't grok this, avoid above checks to |
318 |
- # be run |
319 |
- # NOTE: later ld64 does grok -no_pie, not -no-pie (as checked) |
320 |
- export gcc_cv_c_no_fpie=no |
321 |
- export gcc_cv_no_pie=no |
322 |
- ;; |
323 |
- *-solaris*) |
324 |
- # todo: some magic for native vs. GNU linking? |
325 |
- myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile ) |
326 |
- # Solaris 11 defines this in its headers, but that causes a |
327 |
- # mismatch whilst compiling, bug #657514 |
328 |
- export ac_cv_func_aligned_alloc=no |
329 |
- export ac_cv_func_memalign=no |
330 |
- export ac_cv_func_posix_memalign=no |
331 |
- ;; |
332 |
- i[34567]86-*-linux*:*" prefix "*) |
333 |
- # to allow the linux-x86-on-amd64.patch become useful, we need |
334 |
- # to enable multilib, even if there is just one multilib option. |
335 |
- myconf+=( --enable-multilib ) |
336 |
- if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then |
337 |
- # we might be on x86_64-linux, but don't do cross-compile, so |
338 |
- # tell the host-compiler to really create 32bits (for stage1) |
339 |
- # (real x86-linux-gcc also accept -m32). |
340 |
- append-flags -m32 |
341 |
- fi |
342 |
- ;; |
343 |
- esac |
344 |
- |
345 |
- # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at |
346 |
- # least on Solaris, and AIX /bin/sh is way too slow, |
347 |
- # so force it to use $BASH (that portage uses) - it can't be EPREFIX |
348 |
- # in case that doesn't exist yet |
349 |
- export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}" |
350 |
- toolchain_src_configure "${myconf[@]}" |
351 |
-} |
352 |
|
353 |
diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml |
354 |
index d70e721314..51f143604e 100644 |
355 |
--- a/sys-devel/gcc/metadata.xml |
356 |
+++ b/sys-devel/gcc/metadata.xml |
357 |
@@ -8,8 +8,6 @@ |
358 |
<use> |
359 |
<flag name="awt">Useful only when building GCJ, this enables Abstract Window Toolkit |
360 |
(AWT) peer support on top of GTK+</flag> |
361 |
- <flag name="boundschecking">Add the bounds checking patch by Haj Ten Brugge, |
362 |
- this will DISABLE the hardened PIE+SSP patches</flag> |
363 |
<flag name="cilk">Support the Cilk Plus language (C/C++ based languages for parallel programming)</flag> |
364 |
<flag name="d">Enable support for the D programming language</flag> |
365 |
<flag name="fixed-point">Enable fixed-point arithmetic support for MIPS targets |