[Mingw-users] x86_64-w64-mingw32-g++ options -static-libgcc -static-libstdc++ seems to broken at gcc 9.3.0

Back to archive index
Michael Ellis micha****@dsuk*****
Fri Sep 4 16:57:03 JST 2020


When using x86_64-w64-mingw32-g++ to build a shared library on OS-X for deployment on Windows, it fails to include libstc++-6.dll, libwinpthread-1.dll and libgcc_s_seh.dll even when the options -static-libgcc -static-libstdc++ are specified 

	Adding these shared libraries into the same folder as the deployed application allows the program to execute as it should.

A full SSCCE example can be seen here: https://gitlab.com/Michael51773/mingwwindowssharedlibbug (https://gitlab.com/Michael51773/mingwwindowssharedlibbug) 

	Using: x86_64-w64-mingw32-gcc/g++9.3.0 (GCC) (download with brew install mingw-w64) 

	Any help with this would be gratefully received. 

	-- Michael Ellis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20200904/2af4e7d3/attachment.html>


More information about the MinGW-Users mailing list
Back to archive index