glibc

Ralf Corsepius rc040203 at freenet.de
Tue Jul 12 09:07:29 UTC 2005


On Tue, 2005-07-12 at 10:36 +0200, Arjan van de Ven wrote:
> On Tue, 2005-07-12 at 10:26 +0200, Ralf Corsepius wrote:
> > On Tue, 2005-07-12 at 04:11 -0400, Jakub Jelinek wrote:
> > > On Tue, Jul 12, 2005 at 01:41:06PM +0530, divij bhatt wrote:
> > > > Hi,
> > > >     How would i know that my glibc is nptl enabled.
> > > 
> > > getconf GNU_LIBPTHREAD_VERSION
> > 
> > How about cross-building? 
> > Any preprocessor define or symbol from glibc to check for by
> > autoconf-magic?
> 
> why?
> If your program code cares I think you're doing something wrong :)
Agreed, but ...

> (especially since you could well end up building against linuxthreads
> but running against nptl, as fedora core 3 and prior did)

... did you ever try to write a portable pthreaded program?

I did, and found myself in a forest of wildest autoconf checks, because
the pthread API and pthread run-time behaving varies quite largely
between OSes and pthread implementations. Now, I am wondering what might
have changed on Linux and which pitfalls might have been introduced ...

Ralf





More information about the fedora-devel-list mailing list