[Top][All Lists]

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

Re: Convenieve libraries and applications.

From: Howard Chu
Subject: Re: Convenieve libraries and applications.
Date: Wed, 11 Aug 2004 17:49:29 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a2) Gecko/20040622

I think this is what the -export-dynamic flag is for.

Carlo Wood wrote:

I have a normal application (not a shared library thus) which
uses convenience libraries in subdirectories.

This application also uses libltdl - in order to load modules.
These modules needs to resolve symbols from the application,
symbols that are in fact in the convenience libraries.

The application itself doesn't use these symbols.
As a result - the symbols are not put into the application!
And loading the modules fails (or at least, calling the
missing functions fails).

What is needed here is obvious: I need to link the application
with the --whole-archive/--no-whole-archive linker flags
around the convenience libraries.

But, libtool doesn't let me do that :/
  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun     
  Symas: Premier OpenSource Development and Support

reply via email to

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