From 4c309b14cf686b50a01b0851f51d0f9bd1266873 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 21 Apr 2023 13:42:37 +0800 Subject: [PATCH] Fix CC compiler support --- fix-cc.patch | 11 +++++++++++ tss2.spec | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 fix-cc.patch diff --git a/fix-cc.patch b/fix-cc.patch new file mode 100644 index 0000000..6c3ad56 --- /dev/null +++ b/fix-cc.patch @@ -0,0 +1,11 @@ +--- tss/utils/makefiletpmc 2019-04-25 01:48:55.000000000 +0800 ++++ tss-patch/utils/makefiletpmc 2023-04-21 13:35:06.801775929 +0800 +@@ -39,7 +39,7 @@ + + # C compiler + +-CC = /usr/bin/gcc ++CC ?= /usr/bin/gcc + + # compile - common flags for TSS library and applications + diff --git a/tss2.spec b/tss2.spec index 0b23b99..b601195 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: fix-cc.patch BuildRequires: gcc BuildRequires: help2man @@ -97,6 +98,9 @@ popd %doc ibmtss.doc %changelog +* Fri Apr 21 2023 hgzhaod -1470-4 +- Fix CC compiler support + * Mon Mar 13 2023 jinlun -1470-3 - Remove RPATH link option. -- Gitee