This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [Mingw-users] Re: libbfd, libtool & Win32
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- To: Guido Draheim <guidod-2002- at gmx dot de>
- Cc: libtool at gnu dot org, mingw-users at lists dot sf dot net, binutils at sources dot redhat dot com, dannysmith at users dot sf dot net
- Date: Mon, 16 Sep 2002 14:25:34 -0400
- Subject: Re: [Mingw-users] Re: libbfd, libtool & Win32
- References: <3D860C0B.C422CCA7@yahoo.com> <3D861189.3050201@gmx.de>
Guido Draheim wrote:
>
> Earnie Boyd wrote:
> >>
> >>Oh, that's news to me. So, one can take the _linker_ to produce a
> >>def file which contains the --dynamic-export-symbols? How is that?
> >>I've looked into dlltool -z too long, it seems...
> >>
> >>(and btw, _how_ recent that my be? ye know, these things happen to
> >> be unresolved for years now....)
> >>
> >
> >
> > Here's an example for the mingw-users archives.
> >
> > g++ -shared -Wl,--output-def,lib/example.def
> > -Wl,--out-implib,lib/libexample
> > .dll.a -Wl,--export-all-symbols -Wl,--add-stdcall-alias -o example.dll
> > example.o -lpng12 -ltiff -lz -ljpeg -lungif -lgdi32
> >
>
> which simply means that Olofson should stop looking
> into dlltool, right!? That's because the work would
> only be useful for setups with an older gcc/binutils
> pair. And the real work should be done in libtool.m4
> to be able to detect the newest format and implant
> calls as those above. Is the format above the final
> call-scheme? (or still under change?)
>
This sounds like a question for bintuils. I've added them to the CC
list.
As for not using dlltool, IIRC the above g++ example won't work in all
cases at this time so dlltool should be used for now. Danny Smith,
please correct me if that is incorrect.
Earnie.