Merge pull request #229 from abrodkin/gcc-mirror

Use official GNU download area
This commit is contained in:
Thomas Pöchtrager 2020-07-12 17:12:04 +02:00 committed by GitHub
commit 77fcafc20b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,9 @@ if [ $(osxcross-cmp $OSX_VERSION_MIN '<=' 10.5) -eq 1 ]; then
fi fi
# GCC mirror # GCC mirror
GCC_MIRROR="https://mirror.koddos.net/gcc" # Official GNU "ftp" doesn't have GCC snapshots
GCC_MIRROR="https://ftp.gnu.org/pub/gnu/gcc"
GCC_MIRROR_WITH_SNAPSHOTS="https://mirror.koddos.net/gcc"
pushd $BUILD_DIR &>/dev/null pushd $BUILD_DIR &>/dev/null
@ -43,9 +45,9 @@ if [ ! -f "have_gcc_${GCC_VERSION}_${TARGET}" ]; then
pushd $TARBALL_DIR &>/dev/null pushd $TARBALL_DIR &>/dev/null
if [[ $GCC_VERSION != *-* ]]; then if [[ $GCC_VERSION != *-* ]]; then
download "$GCC_MIRROR/releases/gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.xz" download "$GCC_MIRROR/gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.xz"
else else
download "$GCC_MIRROR/snapshots/$GCC_VERSION/gcc-$GCC_VERSION.tar.xz" download "$GCC_MIRROR_WITH_SNAPSHOTS/snapshots/$GCC_VERSION/gcc-$GCC_VERSION.tar.xz"
fi fi
popd &>/dev/null popd &>/dev/null