diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-05-13 00:30:33 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-05-13 00:30:33 +0000 |
commit | 2e508248018ac12bf806c465dfbf2a87537786c7 (patch) | |
tree | e6d89897d0fee7a933c5814a14dcb89325bb534f /eclass | |
parent | have_NPTL is going the way of the dodo. (diff) | |
download | gentoo-2-2e508248018ac12bf806c465dfbf2a87537786c7.tar.gz gentoo-2-2e508248018ac12bf806c465dfbf2a87537786c7.tar.bz2 gentoo-2-2e508248018ac12bf806c465dfbf2a87537786c7.zip |
have_NPTL isnt used anymore
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/eutils.eclass | 47 |
1 files changed, 1 insertions, 46 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 6c76eb128ff1..d6a0e35b8f9e 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.170 2005/05/06 04:14:17 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.171 2005/05/13 00:30:33 vapier Exp $ # # Author: Martin Schlemmer <azarah@gentoo.org> # @@ -369,51 +369,6 @@ epatch() { fi } -# This function return true if we are using the NPTL pthreads -# implementation. -# -# <azarah@gentoo.org> (06 March 2003) -# -have_NPTL() { - cat > ${T}/test-nptl.c <<-"END" - #define _XOPEN_SOURCE - #include <unistd.h> - #include <stdio.h> - - int main() - { - char buf[255]; - char *str = buf; - - confstr(_CS_GNU_LIBPTHREAD_VERSION, str, 255); - if (NULL != str) { - printf("%s\n", str); - if (NULL != strstr(str, "NPTL")) - return 0; - } - - return 1; - } - END - - einfon "Checking for _CS_GNU_LIBPTHREAD_VERSION support in glibc ..." - if gcc -o ${T}/nptl ${T}/test-nptl.c &> /dev/null - then - echo "yes" - einfon "Checking what PTHREADS implementation we have ..." - if ${T}/nptl - then - return 0 - else - return 1 - fi - else - echo "no" - fi - - return 1 -} - # This function check how many cpu's are present, and then set # -j in MAKEOPTS accordingly. # |