From e3ea2d4e427ed39a75e990e519f34d36425adc94 Mon Sep 17 00:00:00 2001 From: lizhuo Date: Mon, 21 Apr 2025 09:37:21 +0000 Subject: [PATCH] Fix CC compiler support Signed-off-by: lizhuo --- backport-Fix-CC-compiler-support.patch | 24 ++++++++++++++++++++++++ tss2.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 backport-Fix-CC-compiler-support.patch diff --git a/backport-Fix-CC-compiler-support.patch b/backport-Fix-CC-compiler-support.patch new file mode 100644 index 0000000..6c32b25 --- /dev/null +++ b/backport-Fix-CC-compiler-support.patch @@ -0,0 +1,24 @@ +From 7edfd01c70c7468ffa63bcc499ca9f3c2936b928 Mon Sep 17 00:00:00 2001 +From: lizhuo +Date: Thu, 3 Apr 2025 21:34:46 +0800 +Subject: [PATCH] Fix-CC-compiler-support + +--- + utils/makefiletpmc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/utils/makefiletpmc b/utils/makefiletpmc +index cb01a66..de934a9 100644 +--- a/utils/makefiletpmc ++++ b/utils/makefiletpmc +@@ -39,7 +39,7 @@ + + # C compiler + +-CC = /usr/bin/gcc ++CC ?= /usr/bin/gcc + + # compile - common flags for TSS library and applications + +-- +2.33.0 \ No newline at end of file diff --git a/tss2.spec b/tss2.spec index 0b23b99..6907db9 100644 --- a/tss2.spec +++ b/tss2.spec @@ -7,7 +7,7 @@ Name: tss2 Version: 1470 -Release: 3 +Release: 4 Summary: IBM's TCG Software Stack (TSS) for TPM 2.0 and related utilities License: BSD @@ -15,6 +15,7 @@ URL: http://sourceforge.net/projects/ibmtpm20tss/ Source0: https://sourceforge.net/projects/ibmtpm20tss/files/ibmtss%{version}.tar.gz Patch1: flags-fixup.patch Patch2: Remove-RPATH-Link-Option.patch +Patch3: backport-Fix-CC-compiler-support.patch BuildRequires: gcc BuildRequires: help2man @@ -97,6 +98,9 @@ popd %doc ibmtss.doc %changelog +* Mon Apr 21 2025 lizhuo -1470-4 +- Fix CC compiler support + * Mon Mar 13 2023 jinlun -1470-3 - Remove RPATH link option. -- Gitee