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
