On Mon, 28 Dec 2009, Bob Friesenhahn wrote:
On Mon, 28 Dec 2009, Vincent Torri wrote:
When passing -pthread to my_lib_LDFLAGS and my_lib_CFLAGS in Makefile.am,
on OpenBSD (libtool 1.5.26), the linker does not have -lpthread, but just
-pthread :
Is -pthread not sufficient to do everything needed? Notice that this is GCC
and not just the "linker". GCC is expected to respond to -pthread.
if we just pass -pthread, then a binary using the library gives, for
example, the error:
tig$ eet
eet:/usr/local/lib/eina/mp/eina_chained_mempool.so: undefined symbol
'pthread_mutex_unlock'
Vincent Torri
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool