From 3f6e1c46734991ebdd3c501c5b4070c4e4982656 Mon Sep 17 00:00:00 2001 From: CalcLoverHK <0v0katai@gmail.com> Date: Fri, 7 Mar 2025 18:37:03 +0100 Subject: [PATCH] use GNU FTP mirror URL for faster download speed --- configure.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.sh b/configure.sh index 4025992..54c95a7 100755 --- a/configure.sh +++ b/configure.sh @@ -4,7 +4,7 @@ source util.sh VERSION=$1 PREFIX="$2" -URL="https://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.xz" +URL="https://ftpmirror.gnu.org/gnu/binutils/binutils-$VERSION.tar.xz" ARCHIVE=$(basename "$URL") # Final location of ld in the sysroot @@ -85,7 +85,7 @@ if [[ -f "$ARCHIVE" ]]; then else echo "$TAG Downloading $URL..." if command -v curl >/dev/null 2>&1; then - curl "$URL" -o "$ARCHIVE" + curl "$URL" -L -o "$ARCHIVE" elif command -v wget >/dev/null 2>&1; then wget -q --show-progress "$URL" -O "$ARCHIVE" else