| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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-libs/glibc/files/eblits/src_unpack.eblit,v 1.17 2012/08/12 05:44:34 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_unpack.eblit,v 1.18 2012/08/14 16:06:06 vapier Exp $ |
| 4 | |
4 | |
| 5 | int_to_KV() { |
5 | int_to_KV() { |
| 6 | local version=$1 major minor micro |
6 | local version=$1 major minor micro |
| 7 | major=$((version / 65536)) |
7 | major=$((version / 65536)) |
| 8 | minor=$(((version % 65536) / 256)) |
8 | minor=$(((version % 65536) / 256)) |
| … | |
… | |
| 171 | # static C-Only gcc, -lgcc_eh doesn't exist. |
171 | # static C-Only gcc, -lgcc_eh doesn't exist. |
| 172 | # http://sources.redhat.com/ml/libc-alpha/2003-09/msg00100.html |
172 | # http://sources.redhat.com/ml/libc-alpha/2003-09/msg00100.html |
| 173 | # http://sourceware.org/ml/libc-alpha/2005-02/msg00042.html |
173 | # http://sourceware.org/ml/libc-alpha/2005-02/msg00042.html |
| 174 | # But! Finally fixed in recent versions: |
174 | # But! Finally fixed in recent versions: |
| 175 | # http://sourceware.org/ml/libc-alpha/2012-05/msg01865.html |
175 | # http://sourceware.org/ml/libc-alpha/2012-05/msg01865.html |
| 176 | if version_is_at_least 2.17 ${PV} ; then |
176 | if ! version_is_at_least 2.17 ; then |
| 177 | echo 'int main(){}' > "${T}"/gcc_eh_test.c |
177 | echo 'int main(){}' > "${T}"/gcc_eh_test.c |
| 178 | if ! $(tc-getCC ${CTARGET}) "${T}"/gcc_eh_test.c -lgcc_eh 2>/dev/null ; then |
178 | if ! $(tc-getCC ${CTARGET}) "${T}"/gcc_eh_test.c -lgcc_eh 2>/dev/null ; then |
| 179 | sed -i -e 's:-lgcc_eh::' Makeconfig || die "sed gcc_eh" |
179 | sed -i -e 's:-lgcc_eh::' Makeconfig || die "sed gcc_eh" |
| 180 | fi |
180 | fi |
| 181 | fi |
181 | fi |