diff --git a/build/scripts/build_cross_tools_gcc4 b/build/scripts/build_cross_tools_gcc4 index 8f438a620f..38fc304729 100755 --- a/build/scripts/build_cross_tools_gcc4 +++ b/build/scripts/build_cross_tools_gcc4 @@ -299,8 +299,10 @@ esac # Only the ones from the source tree should be used. rm -rf "$installDir/$haikuMachine/sys-include" -# remove the static libstdc++, only the shared one should be used -rm -f "$installDir/$haikuMachine/lib/libstdc++.a" +# rename the static libstdc++ to prevent accidental usage +# (it should be used by the bootstrap process only) +mv "$installDir/$haikuMachine/lib/libstdc++.a" \ + "$installDir/$haikuMachine/lib/libstdc++-static.a" # remove the sysroot dir rm -rf "$sysrootDir"