From 9f3e384edd73c843b18b97a1cb4df3839309881d Mon Sep 17 00:00:00 2001 From: zhoujing Date: Tue, 10 Oct 2023 16:57:11 +0800 Subject: [PATCH] Support for building with clang --- libtpms.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libtpms.spec b/libtpms.spec index 2d10c58..ef2de9c 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}" == "" @@ -77,6 +77,10 @@ Libtpms header files and documentation. %build +%if "%toolchain" == "clang" +export CFLAGS="${CFLAGS} -Wno-self-assign" +%endif + %if "%{crypto_subsystem}" == "openssl" %define _with_openssl --with-openssl %endif @@ -115,6 +119,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtpms.la %postun -p /sbin/ldconfig %changelog +* Tue Oct 10 2023 zhoujing - 0.9.5-3 +- Add -Wno-self-assign for building with clang + * Tue Mar 07 2023 jiangfangjie - 0.9.5-2 - fix CVE-2023--1018 and CVE-2023-1017