Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2012 15:43:01 -0500
From:      Eitan Adler <lists@eitanadler.com>
To:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: -lpthread vs -pthread: does -D_REENTRANT matter?
Message-ID:  <CAF6rxg=N54TYi-JpN15WDQb8qXXmESpEYE9gdMW2VKP2c625ZQ@mail.gmail.com>
In-Reply-To: <CAF6rxg=PnQvtXydhx8%2BoRZJ2ERBoGwedXPcGi_9icYxAtPuxVw@mail.gmail.com>
References:  <CAF6rxg=PnQvtXydhx8%2BoRZJ2ERBoGwedXPcGi_9icYxAtPuxVw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8 October 2012 12:17, Eitan Adler <lists@eitanadler.com> wrote:
> The only difference between -lpthread and -pthread that I could see is
> that the latter also sets -D_REENTRANT.
> However, I can't find any uses of _REENTRANT anywhere outside of a few
> utilities that seem to define it manually.
>
> Testing with various manually written pthread programs resulted in
> identical binaries, let alone identical results.
>
> Is there an actual difference between -pthread and -lpthread or is
> this just a historical artifact?

does anyone know the answer to this question? I've been experimenting
but can't find a difference at all.


-- 
Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxg=N54TYi-JpN15WDQb8qXXmESpEYE9gdMW2VKP2c625ZQ>