summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-01-27 21:52:34 +0000
committerSam James <sam@gentoo.org>2022-01-27 21:53:07 +0000
commit57737c9f2a9ce3e1b2492760e98932b7b9f9eea2 (patch)
tree28197cfa9e89b6b9d06ffda292eaea4e7532e534 /sys-devel/binutils/binutils-9999.ebuild
parentmedia-video/pipewire: add X bell support (diff)
downloadgentoo-57737c9f2a9ce3e1b2492760e98932b7b9f9eea2.tar.gz
gentoo-57737c9f2a9ce3e1b2492760e98932b7b9f9eea2.tar.bz2
gentoo-57737c9f2a9ce3e1b2492760e98932b7b9f9eea2.zip
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@gentoo.org>
Diffstat (limited to 'sys-devel/binutils/binutils-9999.ebuild')
-rw-r--r--sys-devel/binutils/binutils-9999.ebuild2
1 files changed, 1 insertions, 1 deletions
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