libtool
[Top][All Lists]
Advanced

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

Re: library with static-only parts


From: Bob Friesenhahn
Subject: Re: library with static-only parts
Date: Sun, 10 Jul 2005 10:57:51 -0500 (CDT)

On Sun, 10 Jul 2005, Simon Richter wrote:

a library I'm writing has the possibilty of being extended with plugins
that can be loaded with ltdl. In order to avoid having to export
lt_dlpreloaded_symbols from the main program to the library (thus making
prelinking impossible and being generally ugly and unportable). I'd like
to have a library where parts are available as a static library only,
that should be automatically linked when linking against the shared
library with libtool. Is there a way to do that?

This approach is not portable. I recommend that all common bits be put in a shared library. The modules can depend on that shared library. The program can also depend on the shared library. Libraries and modules should never depend on symbols in the "program" unless it is via an explicit registration mechanism.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

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