meta: Fix static build on Windows
Submitted by Erik van Pienbroek
Link to original bug (#698118)
Description
Created attachment 241626 Proposed patch
win32: Prefer the use of constructors over DllMain
This prevents having to depend on DllMain in static libraries
Constructors are available in both the GCC build (GCC 2.7 and later) and the MSVC build (MSVC 2008 and later using _Pragma, earlier versions using #pragma)
This patch was discussed in http://lists.fedoraproject.org/pipermail/mingw/2013-March/006429.html and http://lists.fedoraproject.org/pipermail/mingw/2013-March/006469.html and is confirmed to work when using GCC as compiler
Patch 241626, "Proposed patch":
0001-win32-Prefer-the-use-of-constructors-over-DllMain.patch
Version: 2.36.x