This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: glibc basic informations
- From: Daniel Jacobowitz <drow at false dot org>
- To: Gildas Bayard <gildas dot bayard at gmail dot com>
- Cc: libc-ports at sources dot redhat dot com
- Date: Fri, 16 Dec 2005 08:40:59 -0500
- Subject: Re: glibc basic informations
- References: <634720cc0512160527p7c170eaak@mail.gmail.com>
On Fri, Dec 16, 2005 at 02:27:17PM +0100, Gildas Bayard wrote:
> I've got a compile problem with glibc 2.3.6 using powerpc-linux-gcc
> 3.3.3 and cross compiling from x86 to powerpc.
> Here it is: what is the current pthread library used in glibc?
> It seems like it's NPTL since there's a nptl directory in the sources.
> But the documentation keeps on telling me I must install the
> linuxthreads add-on to get thread support. Is the documentation simply
> out of date?
If you are compiling glibc 2.3.6, you have your choice of NPTL or
LinuxThreads for most platforms. If you are using GCC 3.3.3 for
PowerPC, you don't. Use LinuxThreads or upgrade to a more recent
compiler.
To use NPTL, use --enable-add-ons. To use LinuxThreads, use
--enable-add-ons=linuxthreads, or --enable-add-ons and remove the
"nptl" subdirectory. Obviously, be sure to unpack the separate
glibc-linuxthreads package.
--
Daniel Jacobowitz
CodeSourcery, LLC