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). Jeremy
