RFC: [Long] Change PTHREAD_LIBS to -pthread for -CURRENT

Joe Marcus Clarke marcus at FreeBSD.org
Tue Jun 8 17:54:19 GMT 2004


On Tue, 2004-06-08 at 12:17, Michael Nottebrock wrote:
> On Tuesday 08 June 2004 10:41, John Birrell wrote:
> > On Tue, Jun 08, 2004 at 10:20:47AM +0200, Michael Nottebrock wrote:
> > > I remember at one time -pthread was completely gone from gcc in
> > > -CURRENT, why this was reversed I don't know
> >
> > The reason was that the gcc people want -pthread to be the standard
> > way of sucking in thread support via their compiler. They intend the
> > -pthread option to be used across all operating systems, notably
> > including Linux. 
> 
> I see. How do we address the issue of having multiple threads libraries to 
> choose from then? I take it using the libmap feature is not the answer.

Yes, it would work the same way it does today.  By default, -pthread
would just link to libpthread, but it would do so in an intelligent
manner.  One could always use libmap to adjust this after the fact.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040608/40449174/attachment.bin


More information about the freebsd-ports mailing list