[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Including static libraries in shared libraries with libtool.

From: Fredrick Meunier
Subject: Re: Including static libraries in shared libraries with libtool.
Date: Mon, 27 Sep 2004 09:51:37 +1000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803

Bob Friesenhahn wrote:
Using recent Automake, I find that I am able to eliminate use of convenience libraries by using a non-recursive build and referring to sources in subdirectories. A simple Automake macro refers to all the objects which would be equivalent to a convenience "library". Works great and avoids the overhead imposed by libtool since libtool must extract all the objects from the archive file prior to using them.

This works great as long as you do not have multiple libraries with cross-library dependencies and a binary using those libraries in your single automake project.

This is because automake manages the various inter-library dependencies during building successfully, but then does not handle dependencies at all during installation. As a result you will probably get linker errors on install :(


reply via email to

[Prev in Thread] Current Thread [Next in Thread]