Force IPV4 in toolchain script (#18)

* Force IPV4 in toolchain script

I was gonna build a toolchain for qloader2 and wget simply hanged. This patch fixes it.

* additional comment in wget

Co-authored-by: Visual <30368284+VisualDevelopment@users.noreply.github.com>

* other additional comment in wget

Co-authored-by: Visual <30368284+VisualDevelopment@users.noreply.github.com>

Co-authored-by: Visual <30368284+VisualDevelopment@users.noreply.github.com>
This commit is contained in:
atomicbit 2020-08-25 20:25:18 -04:00 committed by GitHub
parent 008b6e691e
commit 97b8d367be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,10 +28,10 @@ mkdir -p build
cd build
if [ ! -f binutils-$BINUTILSVERSION.tar.gz ]; then
wget https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILSVERSION.tar.gz
wget -4 https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILSVERSION.tar.gz # Force IPv4 otherwise wget hangs
fi
if [ ! -f gcc-$GCCVERSION.tar.gz ]; then
wget https://ftp.gnu.org/gnu/gcc/gcc-$GCCVERSION/gcc-$GCCVERSION.tar.gz
wget -4 https://ftp.gnu.org/gnu/gcc/gcc-$GCCVERSION/gcc-$GCCVERSION.tar.gz # Same as above
fi
tar -xf binutils-$BINUTILSVERSION.tar.gz