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
[EMAIL PROTECTED], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to