MinGW-w64 can be multilib, supporting both of 32-bit and 64-bit by a single compiler.
If 64-bit default, using -m32, or if 32-bit default, using -m64.
This build environment should be supported for building GnuPG and its friends.
MinGW-w64 can be multilib, supporting both of 32-bit and 64-bit by a single compiler.
If 64-bit default, using -m32, or if 32-bit default, using -m64.
This build environment should be supported for building GnuPG and its friends.
I'm going test with 64-bit default lib32 with -m32 version, looking at: https://github.com/Jesseatgao/mingw-w64-multilib
So far, building libgpg-error, libassuan, libgcrypt, libksba, npth build well.
I did configure by (example by libgpg-error):
RC="x86_64-w64-mingw32-windres -F pe-i386" DLLTOOL="x86_64-w64-mingw32-dlltool" CC="x86_64-w64-mingw32-gcc -m32" ../libgpg-error/configure --prefix=/usr/local/mingw32 --enable-maintainer-mode --host=i686-w64-mingw32
I installed zlib, looking at: https://aur.archlinux.org/packages/mingw-w64-zlib
And ntbtls builds well.
Then, gnupg builds well, replacing RC=... by WINDRES=....