From 2b103ca8bea2fed01e9399c0ec3ad97ae2dde095 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 16 Jun 2014 15:19:11 +0200 Subject: [PATCH] Enable TLS support in gcc. Since hrev47198 we have ELF-based TLS support in Haiku. When building gcc with haikuporter, this is detected by the configure script, but when cross compiling gcc we need to manually enable it, as no runtime check can be performed to detect the feature. This should fix #10938 by avoiding the mix of TLS and non-TLS libstdc++. --- build/scripts/build_cross_tools_gcc4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/scripts/build_cross_tools_gcc4 b/build/scripts/build_cross_tools_gcc4 index cece149868b..444a5dccb93 100755 --- a/build/scripts/build_cross_tools_gcc4 +++ b/build/scripts/build_cross_tools_gcc4 @@ -209,7 +209,7 @@ CFLAGS="$ccFlags" CXXFLAGS="$cxxFlags" "$gccSourceDir/configure" \ --prefix="$installDir" $buildHostSpec --target=$haikuMachine \ --disable-nls --disable-shared --with-system-zlib \ --enable-languages=c,c++ --enable-lto --enable-frame-pointer \ - --with-sysroot="$sysrootDir" --enable-threads=posix \ + --with-sysroot="$sysrootDir" --enable-threads=posix --enable-tls \ $gccConfigureArgs \ || exit 1