Skip to content

Commit

Permalink
Enable TLS support in gcc.
Browse files Browse the repository at this point in the history
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++.
  • Loading branch information
pulkomandy committed Jun 16, 2014
1 parent eb50397 commit 2b103ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/scripts/build_cross_tools_gcc4
Expand Up @@ -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

Expand Down

0 comments on commit 2b103ca

Please sign in to comment.