This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] BZ #5784: Build libpthread.a with ld -r
Roland McGrath <roland@hack.frob.com> writes:
> There is a further wrinkle here, the possibility of what might be
> termed "dynamic static threadedness". That is, a program linked
> without -lpthread might use dlopen (or equivalent via NSS modules
> or whatnot) to load libpthread.so (or another DSO that depends on
> it), and then be able to create a thread. The existing scheme
> doesn't account for this possibility, and I am not aware of anyone
> having complained, so perhaps nobody actually cares.
This case has always been rejected as unsupported, ie. if you ever
create threads you must link main against -lpthread.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."