Build for Windows/ARM64

I am tring to build an ARM64 verison Gpg4win for my snapdragon book.
But unfortunately, gpg4win only support mingw to build, and gcc-mingw can’t target to Windows/Arm64. So i try to use clang(https://github.com/mstorsjo/llvm-mingw) instead. But i finally stuck at the missing of the “libgcc_s_sjlj-*.dll”.
Is there anybody know how to deal with it? thx

Phew that will probably be complicated. But interesting, If you do any changes to Gpg4win for that please be sure to send a patch :slight_smile:

Regarding the missing libgcc_s_sjlj-*.dll if you do not need it with llvm mingw you might just want to create dummy files for them in the src subfolder of Gpg4win.

So in the src subfolder do a:

touch libgcc_s_sjlj-1.dll-x libstdc+±6.dll-x libwinpthread-1.dll-x

A better fix for this might be to check for the target in configure and then handle that properly but that is more complicated.

Hi Jianli,

for such a topic it is best to try the mailinglists:
First gpg4win-devel@ and then gnupg-devel@

Best Regards,
Bernhard

BTW. You would also need an installer for GnuPG itself for the ARM64 target. So maybe start with that. I’m not even sure how that would work with NSIS.