Package: libtool
Version: 1.5.22-4
Severity: normal

Dear Kurt,
thanks for helping me along with this issue on IRC, as dicussed there
I am submitting this bug-report for documentation purposes.

I have just realized that the Debian specific libtool enhancement for
reducing unneeded linkage (by not recursivly linking dependency_libs
when dynamic linking is used) does not work when libtool convenience
libraries (noinst_LTLIBRARIES) are used.

This hit me in 405239. Gnutls is using a convenience library
liblgnu.la which links against libgcrypt. libtool adds libgcrypt.la
_and_ *its* dependency_libs to liblgnu.la's dependency_libs.
Later when gnutls is generated, libgnutls is linked directly against 
liblgnu.la's
dependency_libs which contains libgcrypt's indirect dependencies.

So afaict the cause of the issue is that libtool acts differently
depending whether it generates a convenience library or a real one.
For a conv-lib it will _recursively_ add dependencies to
dependency_libs.

As discussed in 347650 there is a workaround:
On mer, jan 11, 2006, Kurt Roeckx wrote:
> I suggest if you create a convience library, you don't link any
> libraries to it at that time.  Instead, when you are linking in
> the convience libraries to something, at that point you should
> add those libraries.  This will avoid libtool from adding all the
> dependency libraries on the command line.

Limitations of this approach and more discussion on the topic can
also be found in 347650.

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to