| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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/Attic/glibc-2.3.4.20050125-r1.ebuild,v 1.14 2005/03/05 23:45:05 eradicator Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/Attic/glibc-2.3.4.20050125-r1.ebuild,v 1.15 2005/03/06 00:34:09 eradicator Exp $ |
| 4 | |
4 | |
| 5 | # Here's how the cross-compile logic breaks down ... |
5 | # Here's how the cross-compile logic breaks down ... |
| 6 | # CTARGET - machine that will target the binaries |
6 | # CTARGET - machine that will target the binaries |
| 7 | # CHOST - machine that will host the binaries |
7 | # CHOST - machine that will host the binaries |
| 8 | # CBUILD - machine that will build the binaries |
8 | # CBUILD - machine that will build the binaries |
| … | |
… | |
| 710 | fi |
710 | fi |
| 711 | |
711 | |
| 712 | echo |
712 | echo |
| 713 | } |
713 | } |
| 714 | |
714 | |
| 715 | |
|
|
| 716 | want_nptl() { |
715 | want_nptl() { |
| 717 | if use nptl || use nptlonly ; then |
716 | want_tls || return 1 |
|
|
717 | use nptl || return 1 |
|
|
718 | |
| 718 | # Archs that can use NPTL |
719 | # Archs that can use NPTL |
| 719 | case $(tc-arch) in |
720 | case $(tc-arch) in |
| 720 | amd64|ia64|ppc|ppc64|s390|sparc) |
721 | amd64|ia64|ppc|ppc64|s390|sparc|x86) |
| 721 | return 0; |
722 | return 0; |
| 722 | ;; |
723 | ;; |
| 723 | x86) |
|
|
| 724 | case ${CTARGET/-*} in |
|
|
| 725 | i486|i586|i686) return 0 ;; |
|
|
| 726 | esac |
|
|
| 727 | ;; |
|
|
| 728 | esac |
724 | esac |
| 729 | fi |
|
|
| 730 | |
725 | |
| 731 | return 1 |
726 | return 1 |
| 732 | } |
727 | } |
| 733 | |
728 | |
| 734 | want_linuxthreads() { |
729 | want_linuxthreads() { |
| … | |
… | |
| 738 | } |
733 | } |
| 739 | |
734 | |
| 740 | want_tls() { |
735 | want_tls() { |
| 741 | # Archs that can use TLS (Thread Local Storage) |
736 | # Archs that can use TLS (Thread Local Storage) |
| 742 | case $(tc-arch) in |
737 | case $(tc-arch) in |
| 743 | alpha|amd64|ia64|ppc|ppc64|s390|sparc) |
738 | alpha|amd64|ia64|ppc|ppc64|s390) |
| 744 | return 0; |
739 | return 0; |
|
|
740 | ;; |
|
|
741 | sparc) |
|
|
742 | case ${CTARGET/-*} in |
|
|
743 | sparc64*) |
|
|
744 | [[ ${ABI} == "sparc32" ]] && return 0 |
|
|
745 | return 1 |
|
|
746 | ;; |
|
|
747 | *) |
|
|
748 | return 0 |
|
|
749 | ;; |
|
|
750 | esac |
| 745 | ;; |
751 | ;; |
| 746 | x86) |
752 | x86) |
| 747 | case ${CHOST/-*} in |
753 | case ${CHOST/-*} in |
| 748 | i486|i586|i686) return 0 ;; |
754 | i486|i586|i686) return 0 ;; |
| 749 | esac |
755 | esac |