1 |
commit: 57737c9f2a9ce3e1b2492760e98932b7b9f9eea2 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 27 21:52:34 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 27 21:53:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57737c9f |
7 |
|
8 |
sys-devel/binutils: disable PGO for cross compiles |
9 |
|
10 |
It doesn't make sense there as we have to run the tests |
11 |
(execute cross-compiled binaries). |
12 |
|
13 |
Closes: https://bugs.gentoo.org/832174 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
sys-devel/binutils/binutils-2.37_p1-r2.ebuild | 2 +- |
17 |
sys-devel/binutils/binutils-9999.ebuild | 2 +- |
18 |
2 files changed, 2 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/sys-devel/binutils/binutils-2.37_p1-r2.ebuild b/sys-devel/binutils/binutils-2.37_p1-r2.ebuild |
21 |
index 5a01301054eb..bea3128e217f 100644 |
22 |
--- a/sys-devel/binutils/binutils-2.37_p1-r2.ebuild |
23 |
+++ b/sys-devel/binutils/binutils-2.37_p1-r2.ebuild |
24 |
@@ -276,7 +276,7 @@ src_configure() { |
25 |
$(use_enable pgo pgo-build lto) |
26 |
) |
27 |
|
28 |
- if use pgo ; then |
29 |
+ if use pgo && ! is_cross ; then |
30 |
export BUILD_CFLAGS="${CFLAGS}" |
31 |
fi |
32 |
|
33 |
|
34 |
diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild |
35 |
index d79e91c3cff1..b7af0845fd0a 100644 |
36 |
--- a/sys-devel/binutils/binutils-9999.ebuild |
37 |
+++ b/sys-devel/binutils/binutils-9999.ebuild |
38 |
@@ -277,7 +277,7 @@ src_configure() { |
39 |
$(use_enable pgo pgo-build lto) |
40 |
) |
41 |
|
42 |
- if use pgo ; then |
43 |
+ if use pgo && ! is_cross ; then |
44 |
export BUILD_CFLAGS="${CFLAGS}" |
45 |
fi |