I've been trying for days to build a mingw-w64 toolchain, I'm stuck at building the cross-compiler, GCC 8.1.0.
The problem is that I must have Thread Local Storage (TLS) enabled, therefore I pass --enable-tls
to GCC's configure script.
With no success, since at the end of the build, _GLIBCXX_HAVE_TLS
is undefined in config.h
, same thing for _GLIBCXX_HAVE_CC_TLS
.
I tried to browse and even patch the autotools files to understand how to make it work.
Has anyone encountered this issue?
Note that the mingw-w64 installer on Windows has TLS symbols, so it must be possible to build GCC for this target and TLS.