On Mar 7, 2006, at 6:12 PM, FX Coudert wrote:

The only sure-fire fix I can think of is to actually build
two static versions of libgfortran -- one threaded and one
not threaded.  I'm not sure this is worth the effort, really.
I'd be more inclined to put a couple of checks in such that
the static libgfortran only runs non-threaded, and force
people to use shared libgfortran for OpenMP.

Hum, there are some platforms where libgfortran (and other target libraries) cannot be built as shared libraries. i386-mingw32 is an example of that. We've been careful until now to keep static libgfortran working even as a static library, and it would be a pity not to be able to run OpenMP on this platform.

I bet the same issue now will happen with libstdc++ (and in 4.1.0 in fact). I want to say the weak references is the wrong way of doing things for non
shared libraries.

-- Pinski

Reply via email to