Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22004

Enable Thread Local Storage when building a mingw-w64 cross-compiler

$
0
0

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.


Viewing all articles
Browse latest Browse all 22004

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>