From 240068e24a8d3b9757103541677d538a7a54ee6e Mon Sep 17 00:00:00 2001 From: Suyun114 Date: Fri, 24 Jan 2025 11:53:59 +0800 Subject: [PATCH] Fix build errors with Clang --- vmtop.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vmtop.spec b/vmtop.spec index 2b1514f..ca50284 100644 --- a/vmtop.spec +++ b/vmtop.spec @@ -1,6 +1,6 @@ Name: vmtop Version: 1.1 -Release: 8 +Release: 9 Summary: A tool for collecting and analyzing data of virtual machine License: MulanPSL-2.0 Group: Application/System @@ -60,6 +60,9 @@ This is a userspace tool which you can run it in host to help detecting VM's per %build +%if "%{?toolchain}" == "clang" +sed -i 's/-Wl,/-Wno-error=unused-command-line-argument -Wl,/' configure.ac +%endif aclocal autoconf autoheader @@ -80,6 +83,9 @@ install -m 550 vmtop ${RPM_BUILD_ROOT}/usr/bin/%{name} %{_bindir}/vmtop %changelog +* Fri Jan 24 2025 Suyun - 1.1-9 +- Fix build errors with Clang + * Sat Jul 27 2024 liangtian - 1.1-8 - domain: change method of getting domain id -- Gitee