From: Michael Tremer Date: Wed, 1 Sep 2021 18:27:43 +0000 (+0000) Subject: binutils/gcc: Explicitely declare host and build architecture tuple X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f66060b9dbd0b4c568bd5d26caff0ce8d60e8c2;p=people%2Fms%2Fipfire-2.x.git binutils/gcc: Explicitely declare host and build architecture tuple This will fix cross-compiling the toolchain which I broke before. Signed-off-by: Michael Tremer --- diff --git a/lfs/binutils b/lfs/binutils index d05d3c2c51..33555fa23d 100644 --- a/lfs/binutils +++ b/lfs/binutils @@ -70,6 +70,8 @@ else AR="$(CROSSTARGET)-ar" \ RANLIB="$(CROSSTARGET)-ranlib" EXTRA_CONFIG = \ + --build=$(BUILDTARGET) \ + --host=$(BUILDTARGET) \ --prefix=$(TOOLS_DIR) \ --with-lib-path=$(TOOLS_DIR)/lib \ --with-sysroot \ diff --git a/lfs/gcc b/lfs/gcc index 33cabfd8ce..ae24416103 100644 --- a/lfs/gcc +++ b/lfs/gcc @@ -116,6 +116,8 @@ ifeq "$(PASS)" "2" AR="$(CROSSTARGET)-ar" \ RANLIB="$(CROSSTARGET)-ranlib" EXTRA_CONFIG = \ + --build=$(BUILDTARGET) \ + --host=$(BUILDTARGET) \ --prefix=$(TOOLS_DIR) \ --with-local-prefix=$(TOOLS_DIR) \ --with-native-system-header-dir=$(TOOLS_DIR)/include \