Page MenuHome GnuPG

gpgrt-config: Support multilib MinGW-w64
Closed, ResolvedPublic

Description

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.

Event Timeline

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=....

gniibe changed the task status from Open to Testing.Dec 12 2022, 9:25 AM

AFAIU, gpgrt-config works well now for the multilib MinGW target.