Subject: Re: pthread + pkgsrc proposal
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.org>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-pkg
Date: 11/24/2004 23:28:40
"Greg A. Woods" <woods@weird.com> writes:

> [ On Wednesday, November 24, 2004 at 12:41:59 (+0100), Martin Husemann wrote: ]
> > Subject: Re: pthread + pkgsrc proposal
> >
> > On Wed, Nov 24, 2004 at 07:01:37AM +0000, Johnny C. Lam wrote:
> > > For pkgsrc, I will be making changes so that if the package uses 
> > > dlopen(), then it will be automatically linked with pthread support. 
> > 
> > If I have a pkg that uses dlopen, but I am realy sure that it never will
> > dlopen() anything threaded - will there be a way to declare that I know
> > what I'm doing and avoid the pthread linking?
> 
> I should certainly hope so!
> 
> Perhaps there's also some trick that can be used so that ld.so will fail
> when any attempt is made to load a module that expects a thread-safe
> environment into a non-threaded application process.

This is getting a bit out of control.

Can someone name an example of a genuinely threaded, as opposed to
defensively-mutex-using, loadable module for some app?

        - Nathan