support clang build
This commit is contained in:
parent
1deaa18986
commit
5092df95d5
@ -1,6 +1,6 @@
|
|||||||
Name: acpica-tools
|
Name: acpica-tools
|
||||||
Version: 20210604
|
Version: 20210604
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: Tools for OS-independent reference implementation of ACPI
|
Summary: Tools for OS-independent reference implementation of ACPI
|
||||||
|
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
@ -56,6 +56,10 @@ CWARNINGFLAGS="\
|
|||||||
export OPT_CFLAGS="%{optflags} $CWARNINGFLAGS"
|
export OPT_CFLAGS="%{optflags} $CWARNINGFLAGS"
|
||||||
export OPT_LDFLAGS="%{__global_ldflags}"
|
export OPT_LDFLAGS="%{__global_ldflags}"
|
||||||
|
|
||||||
|
%if "%{?toolchain}" == "clang"
|
||||||
|
CFLAGS="${CFLAGS:-%{?build_cflags}}"; export CFLAGS;
|
||||||
|
%endif
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -87,6 +91,9 @@ fi
|
|||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 6 2024 guojunding <guojunding@kylinos.cn> - 20210604-7
|
||||||
|
- support clang build
|
||||||
|
|
||||||
* Tue Mar 5 2024 guojunding <guojunding@kylinos.cn> - 20210604-6
|
* Tue Mar 5 2024 guojunding <guojunding@kylinos.cn> - 20210604-6
|
||||||
- fix invalid dates
|
- fix invalid dates
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user