This is the mail archive of the
mailing list for the Cygwin project.
----- Original Message -----
From: "Chris Faylor" <email@example.com>
Sent: Friday, September 08, 2000 8:14 AM
Subject: Re: libtool
> On Fri, Sep 08, 2000 at 08:02:46AM +1100, Robert Collins wrote:
> >I played around last night... pity I don't know dlls that well :-]
> >1) the ltdll.c header seems unneeded with current gcc
>gcc -shared -g -O2 -Wall,--enable-auto-image-base,--out-imp-lib=.libs/libna
> >e.dll.a -o .libs/libname.dll -export-dynamic a.lo b.lo c.lo
> >built a dll quite happily from standard sources except there were no
> >I presume that's what the sed and DLLTOOL scripts in the current libtool
> >all about? generating a .def file to explicitly list the exports?
> >2) the .def files format was broken
> >-> I haven't looked at this yet
> >3) the .def file had many un-related symbols pulled via dlltool and sed.
> >(i.e. printf as an export from glib...)
> >I'm kicking around using NM and searching for T entries in the .lo files
> >rather than libtool --export-all
> >comments anyone?
> What about 'D' entries?
Thank you.. I've realised I probably asking the wrong question...
is there an existing tool that will pull the following symbols from a
collection of .lo files:
* explicitly _declspec(dllexport) symbols
* any symbols that could be linked to the .lo files if they were collected
into a static library. (phrased badly I know)
currently libtool uses dlltool --export-all -z mydeffile.def a.lo b.lo ...
d.lo where the .lo files are what will be linked to created the .dll
the symbols are used to created import and export .def files so that the .h
files do not need to explicitly use declspec(dllimport) etc.
if there is no existing tool... can anyone recommend documentation that
might help me specify what said tool needs to do to get only those symbols?
there are T (haven't looked at D yet) symbols that are part of core system
libraries (to pick two of them T _malloc or T _strcmp). I don't think glib
(my test libtooled library overrides those function itself).
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org