1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

Toolchain: Update binutils to version 2.39

This commit is contained in:
Brian Gianforcaro 2022-08-22 23:52:23 -07:00 committed by Brian Gianforcaro
parent 7ac3dffe9e
commit e9e8111f4a
2 changed files with 4 additions and 5 deletions

View file

@ -296,11 +296,10 @@ build_toolchain() {
ensure_toolchain() {
[ -d "$TOOLCHAIN_DIR" ] || build_toolchain
# FIXME: Remove this check when most people have already updated their toolchain
if [ "$TOOLCHAIN_TYPE" = "GNU" ]; then
local ld_version
ld_version="$("$TOOLCHAIN_DIR"/bin/"$TARGET"-pc-serenity-ld -v)"
local expected_version="GNU ld (GNU Binutils) 2.38"
local expected_version="GNU ld (GNU Binutils) 2.39"
if [ "$ld_version" != "$expected_version" ]; then
echo "Your toolchain has an old version of binutils installed."
echo " installed version: \"$ld_version\""

View file

@ -71,8 +71,8 @@ echo SYSROOT is "$SYSROOT"
mkdir -p "$DIR/Tarballs"
BINUTILS_VERSION="2.38"
BINUTILS_MD5SUM="f430dff91bdc8772fcef06ffdc0656ab"
BINUTILS_VERSION="2.39"
BINUTILS_MD5SUM="ab6825df57514ec172331e988f55fc10"
BINUTILS_NAME="binutils-$BINUTILS_VERSION"
BINUTILS_PKG="${BINUTILS_NAME}.tar.gz"
BINUTILS_BASE_URL="https://ftp.gnu.org/gnu/binutils"
@ -197,7 +197,7 @@ pushd "$DIR/Tarballs"
md5=""
if [ -e "$BINUTILS_PKG" ]; then
md5="$($MD5SUM $BINUTILS_PKG | cut -f1 -d' ')"
echo "bu md5='$md5'"
echo "binutils md5='$md5'"
fi
if [ "$md5" != ${BINUTILS_MD5SUM} ] ; then
rm -f $BINUTILS_PKG