diff options
author | Sam James <sam@gentoo.org> | 2022-01-27 21:52:34 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-01-27 21:53:07 +0000 |
commit | 57737c9f2a9ce3e1b2492760e98932b7b9f9eea2 (patch) | |
tree | 28197cfa9e89b6b9d06ffda292eaea4e7532e534 | |
parent | media-video/pipewire: add X bell support (diff) | |
download | gentoo-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>
-rw-r--r-- | sys-devel/binutils/binutils-2.37_p1-r2.ebuild | 2 | ||||
-rw-r--r-- | 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 |