build_cross_tools_gcc4: bring in sync with native compiler.

* Previously, the cross-compiler would generate code that doesn't
  run on Haiku, particularly where TLS is concerned. It also ended
  up with a c++config.h header incompatible with the version in
  the native compiler.
* Now possible to correctly cross-compile rust for Haiku.
This commit is contained in:
Jessica Hamilton 2017-09-05 21:41:39 +00:00
parent fe434a740e
commit 6cc6f04747

View File

@ -256,8 +256,9 @@ 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" --disable-threads --disable-tls \
--disable-libatomic \
--enable-__cxa-atexit --enable-threads=posix \
--with-default-libstdcxx-abi=gcc4-compatible \
--with-sysroot="$sysrootDir" \
$gccConfigureArgs \
|| exit 1