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>
diff --git a/toolchain/make_toolchain.sh b/toolchain/make_toolchain.sh
index ed5b4072..00eb5230 100755
--- a/toolchain/make_toolchain.sh
+++ b/toolchain/make_toolchain.sh
@@ -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
