Re: [PATCH] w32: Use __declspec(thread) for FIPS thread context TLS

NIIBE Yutaka via Gcrypt-devel <[email protected]> Tue, 16 Dec 2025 11:20:03 +0900
Newsgroups gmane.comp.encryption.gpg.libgcrypt.devel
Message-ID <[email protected]>
Hello,

Knugi wrote:
> The GNU implementation of __thread on Windows (or MinGW32) seems to
> dynamically link to libwinpthread.dll and libgcc_s_seh-1.dll.

In my environment of Debian, we have two executable variants with two
different threading models; POSIX threading model:
x86_64-w64-mingw32-gcc-posix and Window threading model:
x86_64-w64-mingw32-gcc-win32.

With x86_64-w64-mingw32-gcc-win32, I found no use of libwinpthread.dll.

I guess that you are using POSIX threading model, right?
Please try with Window threading model.
--