]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
binutils/gcc: Explicitely declare host and build architecture tuple
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Feb 2022 16:47:35 +0000 (16:47 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 5 Feb 2022 12:11:46 +0000 (12:11 +0000)
This will fix cross-compiling the toolchain which I broke before.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/binutils
lfs/gcc

index d05d3c2c51274b91790c087438c2d5a41eca362c..33555fa23dbfeb0d22b428d69fa7d8bdb1c16b21 100644 (file)
@@ -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 6bb1d170a8a9613805f022f25744fffd5cd03792..f9502562dca0e8131d88feae8a98b5c01f10c4dd 100644 (file)
--- 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 \