From patchwork Fri Feb 4 16:47:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 5064 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Jr1gn0HD1z3xHT for ; Fri, 4 Feb 2022 16:48:21 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Jr1gP2Wf3z5MR; Fri, 4 Feb 2022 16:48:01 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Jr1gN0QpYz32MN; Fri, 4 Feb 2022 16:48:00 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Jr1gK70pvz2ypv for ; Fri, 4 Feb 2022 16:47:57 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Jr1gK4PbTz4lQ; Fri, 4 Feb 2022 16:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1643993277; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t+lBgU5s2ennqV0Mi4RawFEfoTZJrVRnSjcs0H4xNTQ=; b=QYmh1sU3vjjHfkJSKlAHmQa5vr3ZZe7BnMMd8GSUoULszDCNMn0jJNTkdxRgialQL1VyLW CdjIVWU3jpnmCN6YDsqrR+DpBsmHFH5fkvGwUhhs3gFlyIvGWYmYeQJYrl9dhapfWMhwZl 9or84G68jOu2ENO5kFwRk+66EcWiIOCU2h1K32h3Eo7KshJ5+3PYq2LhH8p5kXtiIOa33n z5RLXlOwj+oTOq7xT/Gxn3UJJpRM/f7heAYqmbO/cyMQafoTzXiR47InsMdmyLbMVpaAEX MjH5vB4e6LWjFuqPxz9KnaImlW3vAh2bGGAuQPdl3AE/TGpgHrURqR64LBzfBw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1643993277; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t+lBgU5s2ennqV0Mi4RawFEfoTZJrVRnSjcs0H4xNTQ=; b=Dveh0BvxCTyZ9pUfXjltpEbJZW5S4D7wb9yfZmdcJbEoL3Fl56Fdd8tXo8Diu3/wLBzM1V WnsddaHzb5zGVWDQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 15/28] binutils/gcc: Explicitely declare host and build architecture tuple Date: Fri, 4 Feb 2022 16:47:35 +0000 Message-Id: <20220204164748.315559-15-michael.tremer@ipfire.org> In-Reply-To: <20220204164748.315559-1-michael.tremer@ipfire.org> References: <20220204164748.315559-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 d05d3c2c5..33555fa23 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 6bb1d170a..f9502562d 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 \