[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
linking and exporting symbols
From: |
Richard Guenther |
Subject: |
linking and exporting symbols |
Date: |
Mon, 13 Aug 2001 17:07:52 +0200 (CEST) |
Hi!
First: please CC me, I'm not on this list.
I'm having problems teaching libtool not to throw away objects
from a static library linked to a program that should export
its symbols to dynamically loaded modules.
I.e. I have
plugins/bla.la -- static/shared library, with -module and
-avoid-version
libstuff/libstuff.la -- static library, with -export-dynamic
main.c -- links with libstuff.la, with -export-dynamic and -dlopen self
now, loading of bla.la via lt_dlopen fails, as at link time the objects
needed from libstuff.la have been removed (as they are not used by main.c)
Is there any way to prevent the linker/libtool from doing this? Is this
considered a bug (as I added -export-dynamic to both, the library and
the program)? I know I can work around this by providing unresolved
symbols in the main program, but...
Also lt_dlopen of static archives does not work as documented (or maybe
I misparsed it) - the .la files generated contain references to .a files
(but not in dlopen=, but in old_library= -- does this mean I cannot
dlopen it?), but those are not available before installation, instead
I have .lo files.
Thanx, Richard.
--
Richard Guenther <address@hidden>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- linking and exporting symbols,
Richard Guenther <=