Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2005 15:05:28 -0500
From:      Archie Cobbs <archie@dellroad.org>
To:        Daniel Eischen <deischen@freebsd.org>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: Bug with pthread_getspecific() and signals
Message-ID:  <42641308.3060900@dellroad.org>
In-Reply-To: <Pine.GSO.4.43.0504181417400.58-100000@sea.ntplx.net>
References:  <Pine.GSO.4.43.0504181417400.58-100000@sea.ntplx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote:
>>E.g., I need to know:
>>
>>- In what versions of FreeBSD will "-pthread" result in a non-broken
>>   (with respect to this bug) thread library?
> 
> Probably when -pthread was switched to libpthread from libc_r.
> Search the CVS commit log for sys/sys/param.h (r1.178).
> 
>>- Of the earlier versions of FreeBSD, in which ones is there a viable
>>   workaround and what is it (e.g., "-lpthread" instead of "-pthread"?)
> 
> Probably not until 5.3-Release where libpthread became the default.

So perhaps the simplest thing to do is look for libpthread and always
link "-lpthread"; otherwise, if libpthread is not found, bail out.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42641308.3060900>