libtool
[Top][All Lists]
Advanced

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

Re: linking modules into programs problem


From: Alexandre Oliva
Subject: Re: linking modules into programs problem
Date: 20 Mar 2001 03:02:37 -0300
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

On Mar 19, 2001, Michael Matz <address@hidden> wrote:

> Bad.  A real cool way around that would be, if libtool itself built (when
> -module is given) both, the library and the module (which should be
> possible, as the -module command line should include all necessary
> arguments for libtool to build also the lib) on those platforms, and so
> hides that fact.

If you want something that can be both dlopened and linked with, use
-export-dynamic, not -module.  The downside is that you won't be able
to remove the lib prefix, but then, that's because you're creating a
library, not a module.

I'm not sure need_lib_prefix is really supposed to address this
particular issue.  My recollection is that is was introduced just
because there might be dynamic loaders that would fail to load
libraries whose names didn't start with lib.

But I wouldn't mind having need_lib_prefix set such that one could
link modules into programs/libraries.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  address@hidden, redhat.com}
CS PhD student at IC-Unicamp        address@hidden, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



reply via email to

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