Possibly incorrect location of libwinpthread-1.dll in package
Description:
When using mingw-w64 to compile packages usind pthreads (and therefore also using mingw-w64-winpthreads), I encounter the following runtime error:
0120:err:module:import_dll Library libwinpthread-1.dll (which is needed by L"Z:\\home\\...<\\<something>.dll") not found
The same code works well on Debian Stable (11).
Upon checking for the location of that library, I see that is located at /usr/x86_64-w64-mingw32/bin/libwinpthread-1.dll
instead of /usr/x86_64-w64-mingw32/lib/. This is different from the corresponding Debian package.
Creating a symbolic link to libwinpthread-1.dll in /usr/x86_64-w64-mingw32/lib fixes the runtime error above.
Therefore, I think that libwinpthread-1.dll should also be located in the lib/ folder, and not the bin/ folder.
Additional info:
- package version(s): 11.0.0-1
Steps to reproduce:
- Use mingw64 to compile an executable which links to libwinpthread-1.dll
- Run that executable in wine
- The above runtime error occurs
If you want to, I can try to provide the example code which failed for me.
Best regards, Christian