From b7556b8e508c8c4221a7d4362be45205a855d5db Mon Sep 17 00:00:00 2001 From: liyunfei Date: Thu, 1 Feb 2024 06:45:13 +0000 Subject: [PATCH] add clang compile support pass build cc to makefile with CC=%{__cc} Signed-off-by: liyunfei --- audit.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/audit.spec b/audit.spec index 40af2fb..2d7e97c 100644 --- a/audit.spec +++ b/audit.spec @@ -2,7 +2,7 @@ Summary: User space tools for kernel auditing Name: audit Epoch: 1 Version: 3.1.2 -Release: 1 +Release: 2 License: GPLv2+ and LGPLv2+ URL: https://people.redhat.com/sgrubb/audit/ Source0: https://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz @@ -104,7 +104,7 @@ autoreconf -f -i %endif --enable-systemd -make CFLAGS="%{optflags}" %{?_smp_mflags} +make CC=%{__cc} CFLAGS="%{optflags}" %{?_smp_mflags} %install mkdir -p $RPM_BUILD_ROOT/{sbin,etc/audit/plugins.d,etc/audit/rules.d} @@ -359,6 +359,9 @@ fi %attr(644,root,root) %{_mandir}/man8/*.8.gz %changelog +* Thu Feb 1 2024 liyunfei - 1:3.1.2-2 +- add clang compile support + * Thu Jan 25 2024 zhengxiaoxiao - 1:3.1.2-1 - update version to 3.1.2 - When processing a run level change, make auditd exit -- Gitee