building libgcrypt with --host x86_64-w64-mingw32

Werner Koch wk at gnupg.org
Tue Feb 16 14:42:01 CET 2016


On Tue, 16 Feb 2016 04:27, dkg at fifthhorseman.net said:

> i'm exploring building gcrypt 1.6.5 using mingw32 on debian, and i find

This is how I build the GnuPG installer for Windows.

> i can build it OK with i686-w64-mingw32-gcc (./configure --host
> i686-w64-mingw32), but not with x86_64-w64-mingw32-gcc (./configure
> --host x86_64-w64-mingw32).  In particular:

I am actually using

  x86_64-w64-mingw32-gcc (GCC) 4.9.1

w/o any problems.  This is not Sid, though.  See also
gnupg/build-aux/speedo.mk for details.   Note that the Windows code
should be build with "./autogen.sh --build-w32" (or -w64) because that
scripts tracks our knowledge of useful options.

>  * random/rndhw.c fails to build because it selects 32-bit assembler
>    because __x86_64__ and __LP64__ are not #define'd

Hmmm.  A mingw regression?

> Has anyone built libgcrypt for 64-bit Windows with mingw?  Is this a
> targeted platform?  If so, is there something i should try to get

Not really because we have not yet looked at rndw32 to check whether it
is okay to be used for Windows 64 bit.

BTW we are abale to build for W64:

 libgpg-error libiconv gettext libassuan gpgex


Shalom-Salam,

   Werner




More information about the Gcrypt-devel mailing list