| 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-3.4.6-r2.ebuild,v 1.30 2011/12/04 23:00:46 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-3.4.6-r2.ebuild,v 1.31 2011/12/06 04:05:49 vapier Exp $ |
| 4 | |
4 | |
| 5 | PATCH_VER="1.6" |
5 | PATCH_VER="1.6" |
| 6 | UCLIBC_VER="1.1" |
6 | UCLIBC_VER="1.1" |
| 7 | UCLIBC_GCC_VER="3.4.5" |
7 | UCLIBC_GCC_VER="3.4.5" |
| 8 | PIE_VER="8.7.10" |
|
|
| 9 | PIE_GCC_VER="3.4.6" |
|
|
| 10 | PP_VER="1.0" |
|
|
| 11 | PP_GCC_VER="3.4.6" |
|
|
| 12 | HTB_VER="1.00.1" |
8 | HTB_VER="1.00.1" |
| 13 | HTB_GCC_VER="3.4.4" |
9 | HTB_GCC_VER="3.4.4" |
| 14 | D_VER="0.24" |
10 | D_VER="0.24" |
| 15 | |
11 | |
| 16 | inherit toolchain eutils |
12 | inherit toolchain eutils |
| … | |
… | |
| 32 | src_unpack() { |
28 | src_unpack() { |
| 33 | toolchain_src_unpack |
29 | toolchain_src_unpack |
| 34 | |
30 | |
| 35 | # misc patches that havent made it into a patch tarball yet |
31 | # misc patches that havent made it into a patch tarball yet |
| 36 | [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch |
32 | [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch |
| 37 | |
|
|
| 38 | # nothing in the tree provides libssp.so, so nothing will ever trigger this |
|
|
| 39 | # logic, but having the patch in the tree makes life so much easier for me |
|
|
| 40 | # since I dont have to also have an overlay for this. |
|
|
| 41 | want_libssp && epatch "${FILESDIR}"/3.4.3/libssp.patch |
|
|
| 42 | |
33 | |
| 43 | # Anything useful and objc will require libffi. Seriously. Lets just force |
34 | # Anything useful and objc will require libffi. Seriously. Lets just force |
| 44 | # libffi to install with USE="objc", even though it normally only installs |
35 | # libffi to install with USE="objc", even though it normally only installs |
| 45 | # if you attempt to build gcj. |
36 | # if you attempt to build gcj. |
| 46 | if ! use build && use objc && ! use gcj ; then |
37 | if ! use build && use objc && ! use gcj ; then |