commit:     6020fc656e53f467c2d548a6550f835e07780b1f
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 10 15:33:40 2023 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Mon Jul 10 15:34:03 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6020fc65

dev-util/perf: Filter LTO flags

Bug: https://bugs.gentoo.org/858449
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 dev-util/perf/perf-6.3-r1.ebuild | 4 +++-
 dev-util/perf/perf-6.3.ebuild    | 4 +++-
 dev-util/perf/perf-6.4-r1.ebuild | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/dev-util/perf/perf-6.3-r1.ebuild b/dev-util/perf/perf-6.3-r1.ebuild
index eb28c4419c9b..d519238f14e1 100644
--- a/dev-util/perf/perf-6.3-r1.ebuild
+++ b/dev-util/perf/perf-6.3-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
-inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
+inherit bash-completion-r1 estack flag-o-matic llvm toolchain-funcs python-r1 
linux-info
 
 DESCRIPTION="Userland tools for Linux Performance Counters"
 HOMEPAGE="https://perf.wiki.kernel.org/";
@@ -231,6 +231,8 @@ perf_make() {
 }
 
 src_compile() {
+       filter-lto
+
        # test-clang.bin not build with g++
        if use clang; then
                make -C "${S_K}/tools/build/feature" V=1 CXX=${CHOST}-clang++ 
test-clang.bin || die

diff --git a/dev-util/perf/perf-6.3.ebuild b/dev-util/perf/perf-6.3.ebuild
index 31bad3f7e7fe..8f0ac9a76ce4 100644
--- a/dev-util/perf/perf-6.3.ebuild
+++ b/dev-util/perf/perf-6.3.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{9..11} )
-inherit bash-completion-r1 estack llvm toolchain-funcs python-r1 linux-info
+inherit bash-completion-r1 estack flag-o-matic llvm toolchain-funcs python-r1 
linux-info
 
 DESCRIPTION="Userland tools for Linux Performance Counters"
 HOMEPAGE="https://perf.wiki.kernel.org/";
@@ -224,6 +224,8 @@ perf_make() {
 }
 
 src_compile() {
+       filter-lto
+
        # test-clang.bin not build with g++
        if use clang; then
                make -C "${S_K}/tools/build/feature" V=1 CXX=${CHOST}-clang++ 
test-clang.bin || die

diff --git a/dev-util/perf/perf-6.4-r1.ebuild b/dev-util/perf/perf-6.4-r1.ebuild
index 83118f390754..c341b8367f60 100644
--- a/dev-util/perf/perf-6.4-r1.ebuild
+++ b/dev-util/perf/perf-6.4-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
-inherit bash-completion-r1 estack linux-info llvm toolchain-funcs python-r1
+inherit bash-completion-r1 estack flag-o-matic linux-info llvm toolchain-funcs 
python-r1
 
 DESCRIPTION="Userland tools for Linux Performance Counters"
 HOMEPAGE="https://perf.wiki.kernel.org/";
@@ -266,6 +266,8 @@ perf_make() {
 }
 
 src_compile() {
+       filter-lto
+
        # test-clang.bin not build with g++
        if use clang; then
                make -C "${S_K}/tools/build/feature" V=1 CXX=${CHOST}-clang++ 
test-clang.bin || die

Reply via email to