Rainer Orth wrote:
> James Carlson <[email protected]> writes:
>> Having a dependency on the threads library becomes a problem only if
>> there's a single library being produced, or if there are multiple
>> libraries but there's no good way for the user to select the right one
>> to use.
> 
> There is a single one each, but both don't make sense without threading,
> so the user has (and needs) no choice.  You'd of course be right if I'd
> force, say, libgcc_s.so, to be linked with -lpthread.

OK.  That's the important bit of context I was missing.

> Indeed: it took me some time to discover what was going on, especially
> in S8 patches.  Seems like Sun was late in the TLS area and it took them
> until S10 to get this right.

Seems worth filing a bug to me, though I suspect it wouldn't get fixed
without substantial push.  Maybe at least a warning for future
developers could be added, as compatibility with those old releases is
likely to be with us third-party developers for some time to come.  (I'm
still building S8 binaries for customers who still have those bits, and
I'll bet there are many others as well.)

-- 
James Carlson         42.703N 71.076W         <[email protected]>
_______________________________________________
tools-compilers mailing list
[email protected]

Reply via email to