diff --git a/build/scripts/build_cross_tools_gcc4 b/build/scripts/build_cross_tools_gcc4 index e1c7bd0ed0..cafdd3e071 100755 --- a/build/scripts/build_cross_tools_gcc4 +++ b/build/scripts/build_cross_tools_gcc4 @@ -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