On Wednesday, December 17, 2003, at 02:06 pm, Dan Sugalski wrote:



Well... yes and no. You need to make sure Parrot links against the thread libraries. You don't, strictly speaking, need to have perl linked against the threading libraries except... several (perhaps most) platforms *really* hate it when you dlopen (or its equivalent) the thread libraries and *haven't* linked your main executable against them. Tends to crash or lock up your process, which kind of sucks.


If you have it such that parrot is linked directly into the main perl executable so that it's loaded as part of the process startup, then you don't need to link in the thread libraries to perl. If you're loading parrot as a perl extension, then you will. (It isn't necessary to build a threaded perl for this, FWIW, you just need to make sure perl loads in the thread library)
--
Dan



Yes, but making sure perl loads the thread library is pretty much the same as saying that perl needs be threaded :).


I don't really like that you cannot build parrot without linking in pthread.

Arthur

Reply via email to