https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80921
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > Looking in the build log, (i.e. output from 'make 2>&1 | tee build.log'), I > now see the commands which create these DLLs; in both cases, they invoke: > > mingw32-gcc -shared -shared-libgcc ... > > which is correct, (although -static-libgcc may be safer); No, -static-libgcc will break exception handling here.