[PATCH] Fix DT_NEEDED search with --as-needed libraries (PR ld/2721)

Diego 'Flameeyes' Pettenò flameeyes@gentoo.org
Fri Jun 2 13:55:00 GMT 2006


On Friday 02 June 2006 10:49, Jakub Jelinek wrote:
> Because without it --as-needed isn't really usable with libtool,
> unless libtool is changed to pass -Wl,--rpath-link with every single
> library it adds (and even in that case it might do unexpected things if
> there are multiple libraries in the same directory).
Quite a common scenario indeed, I just (well, two days ago) hit this kind of 
problem in kdelibs update: a just built library was linked against the 
installed copy of another library because of this, but there was a missing 
function that's only present in the new copy of them.

Thanks for this patch Jakub, this was one of the main issues I've encountered 
with --as-needed up to now.

-- 
Diego "Flameeyes" Pettenò - http://farragut.flameeyes.is-a-geek.org/
Gentoo/Alt lead, Gentoo/FreeBSD, Video, AMD64, Sound, PAM, KDE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060602/c3a76af8/attachment.sig>


More information about the Binutils mailing list