!45 support clang build

From: @guojunding 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-03-06 09:53:27 +00:00 committed by Gitee
commit 77db5a730a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: acpica-tools
Version: 20210604
Release: 6
Release: 7
Summary: Tools for OS-independent reference implementation of ACPI
License: GPLv2
@ -56,6 +56,10 @@ CWARNINGFLAGS="\
export OPT_CFLAGS="%{optflags} $CWARNINGFLAGS"
export OPT_LDFLAGS="%{__global_ldflags}"
%if "%{?toolchain}" == "clang"
CFLAGS="${CFLAGS:-%{?build_cflags}}"; export CFLAGS;
%endif
%make_build
%install
@ -87,6 +91,9 @@ fi
%{_docdir}/*
%changelog
* Wed Mar 6 2024 guojunding <guojunding@kylinos.cn> - 20210604-7
- support clang build
* Tue Mar 5 2024 guojunding <guojunding@kylinos.cn> - 20210604-6
- fix invalid dates