From b99e7ae9cf5e6c405c1f0ffb64d662fdfe00e075 Mon Sep 17 00:00:00 2001 From: SaltyFruit Date: Sat, 29 Apr 2023 05:17:23 +0000 Subject: [PATCH] Fix CC compiler support and CFLAGS error Signed-off-by: SaltyFruit --- libtpms.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libtpms.spec b/libtpms.spec index 2d10c58..908950f 100644 --- a/libtpms.spec +++ b/libtpms.spec @@ -2,7 +2,7 @@ %define name libtpms %define version 0.9.5 -%define release 2 +%define release 3 # Valid crypto subsystems are 'freebl' and 'openssl' %if "%{?crypto_subsystem}" == "" @@ -86,8 +86,13 @@ Libtpms header files and documentation. %endif %if "%{build_type}" == "debug" -CFLAGS=-O0 +CFLAGS="-O0 -ferror-limit=0" %endif + +%if "%toolchain" == "clang" +CFLAGS="$CFLAGS -Wno-error=self-assign" +%endif + ./autogen.sh \ --with-tpm2 \ --disable-static \ @@ -115,6 +120,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtpms.la %postun -p /sbin/ldconfig %changelog +* Fri Apr 28 2023 Xiaoya Huang - 0.9.5-3 +- Fix CC compiler support and CFLAGS error + * Tue Mar 07 2023 jiangfangjie - 0.9.5-2 - fix CVE-2023--1018 and CVE-2023-1017 -- Gitee