Hello,

ports' libffi depends on libpthread but is not linked against it. That
means that any program depending on libffi also needs to link with
libpthread explicitly. It also makes some troubles in autoconf's
configure systems testing for libffi usability where on OpenBSD we get
unresolved pthread symbols and hence test fails although libffi is
available:

 /usr/local/lib/libffi.so.1.1: undefined reference to `pthread_mutex_unlock'
 /usr/local/lib/libffi.so.1.1: undefined reference to `pthread_mutex_lock'
 /usr/local/lib/libffi.so.1.1: undefined reference to `pthread_mutex_init'


This may be solved easily by linking libffi against libpthread.
Attached patch does this.

Thanks for review,

Karel

Attachment: libffi.patch
Description: Binary data

Reply via email to