I'm using Mingw64 for Windows(of course), and I usually statically link against libwinpthread.a. But I have noticed that there is also a library called libpthread.a (without the win). I can see that they have different sizes, so something must be different. If I create a very simple program with thread library included, I can see that the compiled code also is in different sizes, when I use the tag -libpthread instead of -libwinpthread.
I know that winpthread is using a BSD-license. And in Linux pthread is using the LGPL-license. So can it be something about the license? Maybe libpthread is using LGPL and libwinpthread is using BSD? I don't know.
I hope someone here can help me. Something must be different, because I get different result.