:: commit 97b8d367be8762edb8ef754dd6676cb338d38191

atomicbit <63680982+atomicbitty@users.noreply.github.com> — 2020-08-26 00:25

parents: 008b6e691e

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
tab: 248 wrap: offon