Build requirements for threaded code?

Sam Varshavchik mrsam at courier-mta.com
Thu Aug 20 00:32:08 UTC 2009


Tom Lane writes:

> This might be a stupid question, but: what compile and link options
> are necessary nowadays for multithreaded code?  I see various references
> to -pthread and -lpthread, but it's hard to be sure what's
> authoritative.

Just -lpthread does the trick for me. The -pthread option is needed on other 
platform, not Linux.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090819/788e0166/attachment.sig>


More information about the fedora-devel-list mailing list