https://sourceware.org/bugzilla/show_bug.cgi?id=27441

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
As-needed shared libraries are supposed to behave like archives in the sense
that they should only be seen to be needed if they satisfy a non-weak undefined
symbol reference *at the point they are loaded*.  Since you are loading
-lpthread before the object file with the reference to "close", -lpthread
should not be marked as needed.  ld.bfd is correct here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to