libtool
[Top][All Lists]
Advanced

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

Re: [EXTERNAL] Re: Q: library dependencies


From: Bob Friesenhahn
Subject: Re: [EXTERNAL] Re: Q: library dependencies
Date: Fri, 25 Sep 2020 13:14:14 -0500 (CDT)
User-agent: Alpine 2.20 (GSO 67 2015-01-07)

On Fri, 25 Sep 2020, Oleg Smolsky wrote:

On 2020-09-25 09:28, Bob Friesenhahn wrote:
With convenience libraries, there may be a necessary build order but the object files are not 'linked' before going into the convenience libraries (as a proper library would be) so all linking is when the final library or program is linked using the objects from the convenience libraries.

Hi Bob, how would I make a "proper" library? Would that change the composition logic for my DAG of dependencies?

I find info on these topics at
https://www.gnu.org/software/libtool/manual/libtool.html#Static-libraries

According to the docs "If you omit both -rpath and -static, libtool will create a convenience library that can be used to create other libtool libraries, even shared ones."

and then

"When GNU Automake is used, you should use noinst_LTLIBRARIES instead of lib_LTLIBRARIES for convenience libraries, so that the -rpath option is not passed when they are linked."

Convenience libraries and static libraries do not technically have "dependencies" since they only represent a compilation step (no linking). If a static library may also be built as a shared library then it may have dependencies and should be described as such.

The final shared library or program itself surely has "dependencies" since otherwise it might not successfully link due to unresolved symbols.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt



reply via email to

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