tdm-gcc icon indicating copy to clipboard operation
tdm-gcc copied to clipboard

Role of libgcc_eh.a replaced by libgcc.a

Open cosing opened this issue 3 years ago • 4 comments

This results in TDM and clang not working together in Windows(clang --target=x86_64-w64-mingw) I had to repackage using ar.exe Is this normal? or I don't have my clang configured properly

cosing avatar Jan 13 '22 03:01 cosing

had to patch out libgcc_eh from clang myself, works fine after :)

revelator avatar Aug 24 '22 09:08 revelator

btw while clang itself builds fine linked to the static runtimes libc++ and friends will not. these need to be built with -shared-libgc -shared-libstdc++ in LDFLAGS. Sadly rust is one thing that cannot be built with TDM because it relies heavily on libgcc_eh.

revelator avatar Aug 25 '22 16:08 revelator

0106-tdm-sjlj.zip

here is the patch for clang-14.0 need to add LDFLAGS+=" -shared-libgcc -shared-libstdc++" when building it. works just fine after that.

revelator avatar Sep 18 '22 17:09 revelator

clang needs the shared runtimes hence the LDFLAGS+=" -shared-libgcc -shared-libstdc++" it cannot be built without them unless someone hacks it together (hint hard as hell to do because cmake does not think static runtimes can throw exceptions).

revelator avatar Sep 19 '22 16:09 revelator