1 |
commit: 5bad5a170adc6e83b7943d7469b69535a6aee886 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 21 23:24:31 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 21 23:42:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bad5a17 |
7 |
|
8 |
sys-devel/binutils: respect CFLAGS for PGO |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-devel/binutils/binutils-2.37_p1-r2.ebuild | 5 +++++ |
13 |
sys-devel/binutils/binutils-9999.ebuild | 5 +++++ |
14 |
2 files changed, 10 insertions(+) |
15 |
|
16 |
diff --git a/sys-devel/binutils/binutils-2.37_p1-r2.ebuild b/sys-devel/binutils/binutils-2.37_p1-r2.ebuild |
17 |
index c7c57aefb044..bbcd261cef45 100644 |
18 |
--- a/sys-devel/binutils/binutils-2.37_p1-r2.ebuild |
19 |
+++ b/sys-devel/binutils/binutils-2.37_p1-r2.ebuild |
20 |
@@ -275,6 +275,11 @@ src_configure() { |
21 |
|
22 |
$(use_enable pgo pgo-build lto) |
23 |
) |
24 |
+ |
25 |
+ if use pgo ; then |
26 |
+ export BUILD_CFLAGS="${CFLAGS}" |
27 |
+ fi |
28 |
+ |
29 |
echo ./configure "${myconf[@]}" |
30 |
"${S}"/configure "${myconf[@]}" || die |
31 |
|
32 |
|
33 |
diff --git a/sys-devel/binutils/binutils-9999.ebuild b/sys-devel/binutils/binutils-9999.ebuild |
34 |
index d53c8d446235..d79e91c3cff1 100644 |
35 |
--- a/sys-devel/binutils/binutils-9999.ebuild |
36 |
+++ b/sys-devel/binutils/binutils-9999.ebuild |
37 |
@@ -276,6 +276,11 @@ src_configure() { |
38 |
|
39 |
$(use_enable pgo pgo-build lto) |
40 |
) |
41 |
+ |
42 |
+ if use pgo ; then |
43 |
+ export BUILD_CFLAGS="${CFLAGS}" |
44 |
+ fi |
45 |
+ |
46 |
echo ./configure "${myconf[@]}" |
47 |
"${S}"/configure "${myconf[@]}" || die |