From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4C28915800A for ; Mon, 31 Jul 2023 02:36:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 88424E0C2F; Mon, 31 Jul 2023 02:36:47 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4EFCBE0C2F for ; Mon, 31 Jul 2023 02:36:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D4116335CDF for ; Mon, 31 Jul 2023 02:36:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 33DADE97 for ; Mon, 31 Jul 2023 02:36:41 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1690770913.913d9dfb7d4085a133192fcab817202b2a94bf3b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/toolchain.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 913d9dfb7d4085a133192fcab817202b2a94bf3b X-VCS-Branch: master Date: Mon, 31 Jul 2023 02:36:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ddfdddc6-4df6-4693-8655-7b8441c6ca10 X-Archives-Hash: d6071ecff76d0860097218275763b654 commit: 913d9dfb7d4085a133192fcab817202b2a94bf3b Author: Sam James gentoo org> AuthorDate: Mon Jul 31 02:35:13 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jul 31 02:35:13 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=913d9dfb toolchain.eclass: sanity-check against bootstrapping for cross Had a report on IRC where bootstrap-cet was being used for a cross-compiler which seems wrong even if it's a bit odd that --disable-bootstrap doesn't win with it. Add a guard as we don't need any of the bootstrap-* targets for cross. Thanks to Ionen for spotting. Signed-off-by: Sam James gentoo.org> eclass/toolchain.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index cc104873a497..edd4c89bb00a 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1320,8 +1320,8 @@ toolchain_src_configure() { confgcc+=( "$@" ${EXTRA_ECONF} ) - if [[ -n ${build_config_targets} ]] ; then - # ./configure --with-build-config='bootstrap-lto bootstrap-cet' + if ! is_crosscompile && ! tc-is-cross-compiler && [[ -n ${build_config_targets} ]] ; then + # e.g. ./configure --with-build-config='bootstrap-lto bootstrap-cet' confgcc+=( --with-build-config="${build_config_targets[*]}" ) fi