This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: #ifndef SHARED in pthread.h
On Mon, 4 Jun 2012 14:19:13 -0400, Carlos wrote:
> If there is no other definition, and this is an internal function that
> we wouldn't allow users to override, then the entire conditional block
> should just be deleted?
It looks like the static build of libpthread.a has a weak definition of
the function so that if a binary ends up with a mixed environment
resulting in a statically linked libpthread.a and a dynamically loaded
copy, the latter should be preferred. Not sure how that will help while
declaring an extern in the public header though; it should be ok
to just remove it.
Regards,
Siddhesh