Building GnuTLS 3.0.9 on MS-Windows

Eli Zaretskii eliz at gnu.org
Mon Jan 9 04:49:10 CET 2012


> Date: Sun, 08 Jan 2012 22:19:19 +0100
> From: Nikos Mavrogiannopoulos <nmav at gnutls.org>
> CC: gnutls-devel at gnu.org
> 
> On 01/08/2012 12:12 PM, Eli Zaretskii wrote:
> 
> 
> >>> My analysis of this was that it is impossible to build both static 
> >>> and dynamic libraries on Windows in the same build.  If that is true,
> >>> then the `configure' script should be modified to not try that by
> >>> default; the default should probably build only the dynamic 
> >>> libraries. In any case, configuring with ./configure
> >>> --build=i686-pc-mingw32 --prefix=/d/usr --disable-shared succeeds and
> >>> produces a static library libgnutls.a (but not before bumping into a
> >>> couple of more problems, described below).
> [...]
> >> Thus it looks like a libtool bug. However I'd suggest you use the alternative
> >> option of building a shared libgnutls instead so you can replace it in
> >> case of important security fixes (e.g. now the one with DTLS).
> > Sorry, I'm not following: which "alternative option"?
> 
> 
> Hello,
>  I meant using --disable-static and --enable-shared instead.

Ah, yes.  That's what I did, eventually.

Thanks.

Btw, other packages do succeed building both versions of the libraries
in the same build, so perhaps this isn't a libtool problem after all.
Maybe the order of building the various libraries should be modified?




More information about the Gnutls-devel mailing list