On Mon, 2005-07-18 at 21:41 +0200, Bruno Haible wrote:
> Oskar Liljeblad wrote:
> > http://autoconf-archive.cryp.to/acx_pthread.html uses a set of
> > tests for pthread support.
> 
> Thanks for the info. I'll use this as a reference when there's need to.
> 
> > Some notes from it:
>
> > -pthread
> >   Linux/gcc (kernel threads), BSD/gcc (userland threads), etc.
> 
> The only platform that I encountered that needs -pthread (rather than
> -lpthread) is OSF/1.

-pthread not only trigger a link to the pthread library. It also
activate specific compilation flags that matter for threaded
applications, like -D_REENTRANT and -DTHREAD_SAFE.

-- 
Yoann Vandoorselaere <[EMAIL PROTECTED]>



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

Reply via email to