Date: Sun, 14 Oct 2012 16:55:07 -0400 From: Eitan Adler <lists@eitanadler.com> To: Jilles Tjoelker <jilles@stack.nl> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: -lpthread vs -pthread: does -D_REENTRANT matter? Message-ID: <CAF6rxg=Pq%2B=60h3OCaMY%2BwtviuhJ6w_erdx5Q7CSdQURG5%2BF=A@mail.gmail.com> In-Reply-To: <20121014144222.GA14503@stack.nl> References: <CAF6rxg=PnQvtXydhx8%2BoRZJ2ERBoGwedXPcGi_9icYxAtPuxVw@mail.gmail.com> <20121014144222.GA14503@stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 14 October 2012 10:42, Jilles Tjoelker <jilles@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxg=Pq%2B=60h3OCaMY%2BwtviuhJ6w_erdx5Q7CSdQURG5%2BF=A>