From 9f66060b9dbd0b4c568bd5d26caff0ce8d60e8c2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 1 Sep 2021 18:27:43 +0000 Subject: [PATCH] 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 --- lfs/binutils | 2 ++ lfs/gcc | 2 ++ 2 files changed, 4 insertions(+) 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 \ -- 2.39.5