Build requirements for threaded code?

Roland McGrath roland at redhat.com
Thu Aug 20 02:57:52 UTC 2009


-pthread means -D_REENTRANT and -lpthread.  -D_REENTRANT is basically
useless and you should use standard feature test macros or _GNU_SOURCE for
what you want.  So just linking with -lpthread is what I would call the
normal and recommended practice.  

The man pages are not maintained by people who ask the people who know.




More information about the devel mailing list