On Tue, 29 Dec 2009, Vincent Torri wrote:

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'

Is -pthread also applied when the binary is built, or has it been lost?

If you compile a trivial hello-world type program with '-v -pthread', does the output show that an alternate libc or a threads library is being used?

Unfortunately, support for -pthread or -pthreads in GCC is platform specific since it is intended to emulate what the platform's native compiler (if it has one) does.

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to