merging various libraries into a single DLL on windows

Werner LEMBERG <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
Folks,


my ttfautohint library exports a single function (`TTF_autohint') and
depends on freetype and harfbuzz.  A user posted the following recipe
to merge these three libraries into a single DLL in Windows.

  - build all libraries statically
  - create a `ttfautohint.def' file as below
  - call `dllwrap', something like

  dllwrap --def ttfautohint.def \
          -o ttfautohint.dll \
          /path/to/libttfautohint.a \
          /path/to/libharfbuzz.a \
          /path/to/libfreetype.a

  ttfautohint.def:
  ---
  LIBRARY ttfautohint.dll
  EXPORTS
  TTF_autohint
  ---

[Supposedly you should rather use `dlltool' instead of `dllwrap', but
 this is an uninportant issue.]

Question: How can I get such a single DLL with libtool?


   Werner

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.