tdm-gcc
tdm-gcc copied to clipboard
Role of libgcc_eh.a replaced by libgcc.a
This results in TDM and clang not working together in Windows(clang
had to patch out libgcc_eh from clang myself, works fine after :)
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.
here is the patch for clang-14.0 need to add LDFLAGS+=" -shared-libgcc -shared-libstdc++" when building it. works just fine after that.
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).