From 95497fb75a40b5aa9d868589efa41adaea1e684c Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Sun, 25 Feb 2024 10:18:48 +0000 Subject: [PATCH] support clang build Signed-off-by: luofeng14 --- lsof.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lsof.spec b/lsof.spec index 5fcb4d1..813c3c8 100644 --- a/lsof.spec +++ b/lsof.spec @@ -1,6 +1,6 @@ Name: lsof Version: 4.99.3 -Release: 1 +Release: 2 Summary: A tool for list open files License: Zlib and Sendmail and LGPL-2.0-or-later URL: https://people.freebsd.org/~abe/ @@ -24,7 +24,7 @@ The %{name}-help package contains doc files for %{name}. %autosetup -n %{name}-%{version} -p1 %build -./Configure -n linux +LSOF_CC=%{__cc} ./Configure -n linux %make_build DEBUG="%{build_cflags} -I/usr/include/tirpc" CFGL="%{build_ldflags} -L./lib -llsof -lselinux -ltirpc" soelim -r Lsof.8 > lsof.1 @@ -50,6 +50,12 @@ popd %{_mandir}/man*/* %changelog +* Thu Feb 22 2024 luofng -4.99.3-2 +- Type: enhencement +- CVE:NA +- SUG:NA +- DESC:support for building with clang + * Tue Jan 23 2024 zhoupengcheng -4.99.3-1 - update version to 4.99.3 -- Gitee