!89 support clang
From: @xucee Reviewed-by: @zhujianwei001 Signed-off-by: @zhujianwei001
This commit is contained in:
commit
e5aa586fb4
@ -1,6 +1,6 @@
|
|||||||
Name: tpm2-tss
|
Name: tpm2-tss
|
||||||
Version: 4.0.1
|
Version: 4.0.1
|
||||||
Release: 2
|
Release: 4
|
||||||
Summary: TPM2.0 Software Stack
|
Summary: TPM2.0 Software Stack
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/tpm2-software/tpm2-tss
|
URL: https://github.com/tpm2-software/tpm2-tss
|
||||||
@ -31,10 +31,14 @@ Obsoletes: %{name}-static
|
|||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if "%toolchain" == "clang"
|
||||||
|
%configure --disable-static --disable-silent-rules --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=80- \
|
||||||
|
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir}
|
||||||
|
%else
|
||||||
%configure --disable-static --disable-silent-rules --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=80- \
|
%configure --disable-static --disable-silent-rules --with-udevrulesdir=%{_udevrulesdir} --with-udevrulesprefix=80- \
|
||||||
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir} \
|
--with-runstatedir=%{_rundir} --with-tmpfilesdir=%{_tmpfilesdir} --with-sysusersdir=%{_sysusersdir} \
|
||||||
--enable-unit --enable-integration
|
--enable-unit --enable-integration
|
||||||
|
%endif
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -74,6 +78,9 @@ make check
|
|||||||
%{_mandir}/man*/*
|
%{_mandir}/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 15 2024 xuce <xuce10@h-partners.com> - 4.0.1-4
|
||||||
|
- Fix incorrect function definition
|
||||||
|
|
||||||
* Wed May 8 2024 jinlun <jinlun@huawei.com> - 4.0.1-2
|
* Wed May 8 2024 jinlun <jinlun@huawei.com> - 4.0.1-2
|
||||||
- fix CVE-2024-29040 and fix test check error
|
- fix CVE-2024-29040 and fix test check error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user