From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1362001-garchives=archives.gentoo.org@lists.gentoo.org>
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 8003B158088
	for <garchives@archives.gentoo.org>; Thu, 27 Jan 2022 21:53:25 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9864EE081A;
	Thu, 27 Jan 2022 21:53:24 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 23F60E0817
	for <gentoo-commits@lists.gentoo.org>; Thu, 27 Jan 2022 21:53:24 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(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 1151E343174
	for <gentoo-commits@lists.gentoo.org>; Thu, 27 Jan 2022 21:53:22 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 142C524E
	for <gentoo-commits@lists.gentoo.org>; Thu, 27 Jan 2022 21:53:21 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
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" <sam@gentoo.org>
Message-ID: <1643320387.57737c9f2a9ce3e1b2492760e98932b7b9f9eea2.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-devel/binutils/binutils-2.37_p1-r2.ebuild sys-devel/binutils/binutils-9999.ebuild
X-VCS-Directories: sys-devel/binutils/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 57737c9f2a9ce3e1b2492760e98932b7b9f9eea2
X-VCS-Branch: master
Date: Thu, 27 Jan 2022 21:53:21 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: acf2c69f-22c3-4bf4-89db-1e7249a39693
X-Archives-Hash: 23bb79e207d847694007d0d60cbfeaee

commit:     57737c9f2a9ce3e1b2492760e98932b7b9f9eea2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 27 21:52:34 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 27 21:53:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57737c9f

sys-devel/binutils: disable PGO for cross compiles

It doesn't make sense there as we have to run the tests
(execute cross-compiled binaries).

Closes: https://bugs.gentoo.org/832174
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/binutils/binutils-2.37_p1-r2.ebuild | 2 +-
 sys-devel/binutils/binutils-9999.ebuild       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-devel/binutils/binutils-2.37_p1-r2.ebuild b/sys-devel/binutils/binutils-2.37_p1-r2.ebuild
index 5a01301054eb..bea3128e217f 100644
--- a/sys-devel/binutils/binutils-2.37_p1-r2.ebuild
+++ b/sys-devel/binutils/binutils-2.37_p1-r2.ebuild
@@ -276,7 +276,7 @@ src_configure() {
 		$(use_enable pgo pgo-build lto)
 	)
 
-	if use pgo ; then
+	if use pgo && ! is_cross ; then
 		export BUILD_CFLAGS="${CFLAGS}"
 	fi
 

diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild
index d79e91c3cff1..b7af0845fd0a 100644
--- a/sys-devel/binutils/binutils-9999.ebuild
+++ b/sys-devel/binutils/binutils-9999.ebuild
@@ -277,7 +277,7 @@ src_configure() {
 		$(use_enable pgo pgo-build lto)
 	)
 
-	if use pgo ; then
+	if use pgo && ! is_cross ; then
 		export BUILD_CFLAGS="${CFLAGS}"
 	fi