[packages/kernel-tools] BR: libstdc++-devel llvm-devel

atler atler at pld-linux.org
Sat Dec 7 14:37:54 CET 2024


commit 90be328a745573e61a2ab7beef7994a016662b53
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Dec 7 13:50:13 2024 +0100

    BR: libstdc++-devel llvm-devel

 kernel-tools.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/kernel-tools.spec b/kernel-tools.spec
index efa0250..7b83bb4 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -76,7 +76,9 @@ BuildRequires:	gcc-multilib-x32
 %{?with_runqslower:BuildRequires:	kernel-vmlinux >= 5.?}
 BuildRequires:	libbpf-devel
 BuildRequires:	libcap-devel
+BuildRequires:	libstdc++-devel >= 6:8
 %{?with_libunwind:BuildRequires:	libunwind-devel >= 0.99}
+BuildRequires:	llvm-devel >= 13
 BuildRequires:	numactl-devel
 BuildRequires:	openssl-devel
 BuildRequires:	perl-devel >= 5.1
@@ -118,7 +120,7 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %endif
 %endif
 
-%define		makeopts	ARCH=%{makearch} CC="%{__cc}" %{?with_verbose:V=1}
+%define		makeopts	ARCH=%{makearch} CC="%{__cc}" CXX="%{__cxx}" %{?with_verbose:V=1}
 
 %description
 This package contains the software from tools/ subdirectory from Linux
@@ -486,6 +488,7 @@ CFLAGS="%{rpmcflags}" \
 
 # perf
 %if %{with perf}
+CXXFLAGS="%{rpmcxxflags}" \
 %{__make} -j1 -C tools/perf all man \
 %ifarch %{x8664}
 	IS_X86_64=1 \
@@ -593,6 +596,7 @@ install -p tools/power/cpupower/debug/x86_64/{centrino,powernow-k8}-decode $RPM_
 %endif
 
 %if %{with perf}
+CXXFLAGS="%{rpmcxxflags}" \
 %{__make} -C tools/perf install \
 %ifarch %{x8664}
 	IS_X86_64=1 \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel-tools.git/commitdiff/90be328a745573e61a2ab7beef7994a016662b53



More information about the pld-cvs-commit mailing list