libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

merging various libraries into a single DLL on windows


From: Werner LEMBERG
Subject: merging various libraries into a single DLL on windows
Date: Sat, 09 Dec 2017 14:42:38 +0100 (CET)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]