-lpthread vs -pthread: does -D_REENTRANT matter?
Eitan Adler
lists at eitanadler.com
Sun Oct 14 20:55:38 UTC 2012
On 14 October 2012 10:42, Jilles Tjoelker <jilles at stack.nl> wrote:
> Because C99 does not specify threading, it allows these transformations.
> In C11, they are forbidden. Passing -pthread disables them as well.
Is the man page wrong or do I misunderstand?
This option sets flags for both the preprocessor and linker. It
does not affect the thread safety of object code produced by the
compiler or that of libraries supplied with it.
--
Eitan Adler
More information about the freebsd-hackers
mailing list