libtool & pthread & ilmbase

Dmitry Marakasov amdmi3 at amdmi3.ru
Sat Aug 29 03:28:38 UTC 2009


* Dmitry Marakasov (amdmi3 at amdmi3.ru) wrote:

> 3) Fix it in OpenEXR.
> The same way as above, as just CONFIGURE_ARGS="${PTHREAD_LIBS}"
> doesn't seem to have any effect.

Hm, there is a drawback however - now you can remove ${PTHREAD_LIBS}
from some ports - they will build without problems after that,
however will segfault. The example is mentioned nvidia-texture-tools.

The fix is still correct - those are applications that need to be lined
with -pthread anyway. However, the fact that application uses threads
may be unobvious (may use threads through library etc.).

So the choice is basically as follows:

"Have a bit of frustration form time to time discovering that
segfaulting port just needs ${PTHREAD_LIBS}" vs. "don't needlessly
force pthreads on many many ports". I'm still for the latter, as it's
logically correct and forcing pthreads on all ilmbase-dependent
ports won't solve this problem anyway (there may be other libraries
possibly with similar problem - and there are).

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3 at amdmi3.ru  ..:  jabber: amdmi3 at jabber.ru    http://www.amdmi3.ru


More information about the freebsd-ports mailing list