On 26 Jul 2000, Alexandre Oliva wrote:
> 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:
If the error said "libtool can not link a static library into
the shared library you are trying to create" then I would
agree with you. The existing warning does not tell me that.
Why is it a warning? This should be an error. If I tell it
"use -lgdi32" it should use it or error out.
> 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?).
I gave up on libtool and just switched to autoconf + automake
with the ld -shared option and it is working just fine
(the linking of a static lib into a .dll that is).
Mo DeJong
Red Hat Inc