From e2f13c396092bc54d1aebaa56cb948aa96eea1f5 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 6 Nov 2015 06:35:17 +0000 Subject: [PATCH] allow override of download sites via config.mak variables --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e4f595a..00a6bc3 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,10 @@ BINUTILS_VER = 2.25.1 GCC_VER = 5.2.0 MUSL_TAG = master +GNU_SITE = http://ftp.gnu.org/pub/gnu +GCC_SITE = $(GNU_SITE)/gcc +BINUTILS_SITE = $(GNU_SITE)/binutils + COMMON_CONFIG = --disable-werror \ --target=$(TARGET) --prefix=$(OUTPUT) \ --with-sysroot=$(OUTPUT)/$(TARGET) @@ -48,11 +52,11 @@ sources/config.sub: wget -O $@ 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' sources/binutils-%: - wget -c -O $@.part http://ftp.gnu.org/pub/gnu/binutils/$(notdir $@) + wget -c -O $@.part $(BINUTILS_SITE)/$(notdir $@) mv $@.part $@ sources/gcc-%: - wget -c -O $@.part http://ftp.gnu.org/pub/gnu/gcc/$(basename $(basename $(notdir $@)))/$(notdir $@) + wget -c -O $@.part $(GCC_SITE)/$(basename $(basename $(notdir $@)))/$(notdir $@) mv $@.part $@