diff --git a/Remove-RPATH-Link-Option.patch b/Remove-RPATH-Link-Option.patch new file mode 100644 index 0000000000000000000000000000000000000000..32b66857b6d010a1d290344aebf1ea383a83349c --- /dev/null +++ b/Remove-RPATH-Link-Option.patch @@ -0,0 +1,25 @@ +From 75f03b034257954c7e4ebf6a43a0006913048228 Mon Sep 17 00:00:00 2001 +From: jinlun +Date: Mon, 13 Mar 2023 11:21:20 +0800 +Subject: [PATCH] Remove RPATH Link Option + +--- + utils/makefiletpmc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/utils/makefiletpmc b/utils/makefiletpmc +index 7de2439..cb01a66 100644 +--- a/utils/makefiletpmc ++++ b/utils/makefiletpmc +@@ -98,7 +98,7 @@ LNLLIBS += -lcrypto + # link - for applications, TSS path, TSS and OpenSSl libraries + + # hardening flags for linking executables +-LNAFLAGS += -pie -Wl,-z,now -Wl,-rpath,. ++LNAFLAGS += -pie -Wl,-z,now. + + LNALIBS += -libmtssutils -libmtss + +-- +2.27.0 + diff --git a/tss2.spec b/tss2.spec index 3259d15aba2bb84734ea1ce638400213c8b4d4b1..0b23b996a4f899f01ee64e95c1b8c9467d0f2c6f 100644 --- a/tss2.spec +++ b/tss2.spec @@ -7,13 +7,14 @@ Name: tss2 Version: 1470 -Release: 2 +Release: 3 Summary: IBM's TCG Software Stack (TSS) for TPM 2.0 and related utilities License: BSD 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 BuildRequires: gcc BuildRequires: help2man @@ -96,6 +97,9 @@ popd %doc ibmtss.doc %changelog +* Mon Mar 13 2023 jinlun -1470-3 +- Remove RPATH link option. + * Fri Jul 30 2021 Guoxiaoqi - 1470-2 - Fix build with gcc-10