On 10/12 06:00, Jeremy Evans wrote:
> On 10/12 01:47, Stuart Henderson wrote:
> > On 2012/10/12 04:43, Jeremy Evans wrote:
> > > The io executable does not link with pthread, but some of the addons do,
> > > so you need to use LD_PRELOAD=libpthread.so to use some of them
> > > (including the Socket extension, probably due to its use of libevent2).
> > 
> > Is there a downside to just forcing the executable to link with -lpthread?
> 
> I assume it has the same downsides as linking any non-threaded program
> with -lpthread.  We don't do it for ruby 1.8 and perl (yet, at least).
> I don't have objections for doing so, but think it's best to be
> consistent with the rest of the ports tree (where we don't link
> non-threaded programs with -lpthread simply because some of their
> plugins use pthreads).

Here's an updated port that links the binary to libpthread, so that
addons that link to libpthread don't require running the binary with
LD_PRELOAD.

Thoughts/OKs?

Thanks,
Jeremy

Attachment: io.tar.gz
Description: application/tar-gz

Reply via email to