Paulo> I've build a multithreaded perl, since I'm building an
Paulo> interface to a threaded library, so I didn't have a choice.

Strictly speaking, you don't necessarily need to use a multi-threaded
build of perl to build an XS extension to a multi-threaded library.

I am the author of the MQSeries module(s), which have just such a
requirement.  The MQSeries products API is multi-threaded, and apps
that link with these libs are required to first link with -lthread.  I
simply build the MQSeries.so and link that with -lthread, not the perl
interpreter itself.

By merely adding -lthread to the LIBS macro in addition to the
MQSeries -l's, everything works fine with a perl built with
-Uusethread.

Reply via email to