[PATCH] BZ #5784: Build libpthread.a with ld -r

Andreas Schwab schwab@linux-m68k.org
Fri Sep 7 08:06:00 GMT 2012


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."



More information about the Libc-alpha mailing list