[mingw 11.0.1] [x86_64-w64-mingw32-g++ 13.2.0]
Folks, we use mingw to create static LilyPond binaries for Windows (using g++). The default build system is Ubuntu, and everything's fine: `-pthread` is added to the compilation step, and `-pthread -static-libgcc` while linking. However, running exactly the same script on OpenSUSE, 'libwinpthread' is not statically linked into the binary. We solve this locally by adding ``` -Wl,--push-state,-Bstatic,-lwinpthread,--pop-state ``` while linking. It seems that it depends on the configuration of mingw for a particular distribution's packages whether these additional linking flags are necessary. Looking around in the internet I see reports of this problem here and there, together with some tips how to fix it, for example https://stackoverflow.com/questions/18138635 What I don't see is an explanation for this behaviour, and whether my assumption is correct – this is why I'm writing to this list. So: can anyone shed some light on this issue? Any help is highly appreciated. Werner _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public