On Jul 22, 2000, Mo DeJong <[EMAIL PROTECTED]> wrote:

> -l arguments are silently removed from the link line

Not silently.  You got a *very* verbose message explaining the
problem:

> *** Warning: This library needs some functionality provided by -lgdi32.
> *** I have the capability to make that library automatically link in when
> *** you link to this library.  But I can only do this if you have a
> *** shared version of the library, which you do not appear to have.
> *** The inter-library dependencies that have been dropped here will be
> *** automatically added whenever a program is linked with this library
> *** or is declared to -dlopen it.


There are actually two problems to be addressed in libtool.  First, it
appears that newer versions of binutils do support including code from
static libraries into DLLs.  I don't know if there are additional
requirements upon such static libraries, though, such as having them
compiled with -fPIC and/or with __declspec(export) (sp?).


The second problem is that, when you specify -no-undefined but libtool
drops some libraries because it can't satisfy the deplibs_check_method
for at least one of the dependency libraries, and the platform doesn't
allow_undefined, libtool should only create a static library.

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

Reply via email to