From: Alan W. I. <ir...@be...> - 2003-03-05 01:18:00
|
On Wed, 5 Mar 2003, Joao Cardoso wrote: > For most compiled programs, it can be safely turned on, even if the host > program is not threads aware. > For already build programs that somehow use PLplot, usually loading it as an > extension, as Octave or python or tk does, things are a bit complicated, as > those programs must themself be linked with the pthread library, even if not > thread aware! I believe the best solution here is simply to link xwin with -lpthread consistent with the hierarchichal linking paradigm we are using. That way, all pthread symbols in the xwin driver should be resolved, and you shouldn't have to do any special linking of octave, wish, tclsh, etc. This is for the dynamic drivers case. In the static drivers case it is a little bit more complicated; the xwin driver becomes part of libplplot, and therefore, libplplot has to be linked with -lpthread. The short story: make Makefile.am changes for the xwin driver following what happens for the gd driver special libraries (libgd, libpng, etc) as a model both for the dynamic and static drivers cases. If you or Rafael don't have time to fiddle with this, I will have a look this weekend. If it works out, then perhaps you will not have to turn off pthreading by default. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |