On Mar 19, 2001, Michael Matz <[EMAIL PROTECTED]> 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                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to