[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)


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/  -- static/shared library, with -module and
  libstuff/  -- static library, with -export-dynamic
  main.c  -- links with, with -export-dynamic and -dlopen self

now, loading of via lt_dlopen fails, as at link time the objects
needed from 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>
The GLAME Project:

reply via email to

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