Albert Chin wrote:
> So, according to your test, #pragma weak supports weak symbols on
> Solaris and IRIX 6.5.

Yes, I confirm this.

> However, in the case of pthread mutex'es, you
> should really test for working stubs in libc:
>   http://lists.freedesktop.org/archives/cairo/2005-July/004465.html
>
> If you do so, you'll get a failure on IRIX 6.5 and a success on HP-UX
> 11.x.

I agree. On HP-UX and Solaris, I get a "success" although programs that need
to create thread actually need -lpthread.

On IRIX 6.5, I get a link error without -lpthread, because among the stubs
in IRIX libc, you have pthread_mutex_init but not pthread_mutexattr_init.
(The latter is needed for recursive locks.)

Bruno



_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to