On Sun, Mar 30, 2025 at 8:57 AM LIU Hao <lh_mo...@126.com> wrote: > 在 2025-3-30 20:29, Tom Kacvinsky 写道: > > Hi, > > > > > > I happened to notice that with a GCC 12.1.0 build (a custom build with > UCRT > > support > > > > before UCRT support was available in baseline MinGW-w64) that > > libgcc_s_seh-1.dll > > > > depends on libwinpthread-1.dll. Compare and contrast with Linux where > > libgcc-s.so.1 > > > > doesn't depend on libpthread.so.0 > > > > Is there a reason for this? Or is it a superfluous dependency? > > I suspect those dependencies are from libgcov and emutls. > > [1] > > https://github.com/gcc-mirror/gcc/blob/e0886d8ad4c51919c349d0b31f2bec3acbc79e14/libgcc/libgcov-interface.c#L41-L80 > [2] > https://github.com/gcc-mirror/gcc/blob/e0886d8ad4c51919c349d0b31f2bec3acbc79e14/libgcc/emutls.c#L73-L79 > > I looked over the *.a and *.o files in the libgcc build directory. I didn't see anything related to gcov or emutls. Moreover -pthread was on the link line. And so was unwind-sjlj_s,o. I did see emutls_s.o on the link line.
I wonder how much of all of this is necessary for building an SEH only exception handler. I will get the full link line. I have to copy it from my work laptop where I am doing the work. Tom _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public