[Top][All Lists]

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

Re: How use --whole-archive ld arg with libtool ?

From: Boehne, Robert
Subject: Re: How use --whole-archive ld arg with libtool ?
Date: Thu, 16 May 2002 14:14:30 -0500


Static libraries don't understand -export-dynamic, it doesn't
make any sense.  If you configure with --disable-shared
then you won't have any modules to dlopen, because
they will be static, and you would already have the resolved
symbols in your executable.



Alain BARBET wrote:
> Hi,
> I use the dream team autoconf/automake/autobuild for a project.
> There are several binaries, libraries and modules.
> If use defaut options (dynamic libraries), all is good.
> But I see with benchmark that I loose some precious time with dynamic
> libraries. Time is important in this project.
> So I want use --disable-shared to build static libraries linked at
> compiled time into binaries.
> But when I run this build, problems begin ...
> As I say, I use modules (hear ".so open by dlopen). This modules use
> symbols defines in libraries, but don't exported in main binaries.
> I don't want link libraries into modules because there a lot of, and I
> want share these symbols.
> So I want introduce something like
> mybin_LDADD = -export-dynamic --whole-archive my_list_of_libraries
> --no-whole-archives others_list_of_external_lib
> But this didn't work ... :-( I see whole-archive in libtool but not how
> use it ...
> Do anybody know how do this ?
> Regards,
> --
> Alain BARBET

Robert Boehne             Software Engineer
Ricardo Software   Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email:  rboehne AT ricardo-us DOT com

reply via email to

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