From 4e77acfea786f331b7a602eccef579de06799426 Mon Sep 17 00:00:00 2001 From: wangqiang Date: Mon, 9 Sep 2024 11:26:09 +0800 Subject: [PATCH] Support building with clang --- nfs4-acl-tools.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nfs4-acl-tools.spec b/nfs4-acl-tools.spec index 71ff9de..cd7cbcf 100644 --- a/nfs4-acl-tools.spec +++ b/nfs4-acl-tools.spec @@ -1,6 +1,6 @@ Name: nfs4-acl-tools Version: 0.3.7 -Release: 6 +Release: 7 Summary: The nfs4 ACL tools License: BSD or GPLv2+ or LGPLv2.1 URL: http://www.citi.umich.edu/projects/nfsv4/linux/ @@ -26,7 +26,11 @@ This contains man files for the using of nfs4-acl-tools. %autosetup -n %{name}-%{version} -p1 %build -%configure +%if "%toolchain" == "clang" + %configure CC=clang LIBTOOL="libtool --tag=CC" +%else + %configure +%endif CFLAGS="`echo $RPM_OPT_FLAGS -fpie`" export LDFLAGS="-pie" %make_build @@ -46,6 +50,9 @@ make DESTDIR=%{buildroot} install %{_mandir}/man*/* %changelog +* Mon Sep 09 2024 wangqiang - 0.3.7-7 +- Add support for building with clang + * Tue Jul 30 2024 wuguanghao - 0.3.7-6 - acl_nfs4_get_who: removed an always false evaluate warning -- Gitee