!9 删除RPATH编译选项

From: @jinlun123123 
Reviewed-by: @HuaxinLuGitee 
Signed-off-by: @HuaxinLuGitee
This commit is contained in:
openeuler-ci-bot 2023-03-14 02:06:57 +00:00 committed by Gitee
commit 346f402dfa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 75f03b034257954c7e4ebf6a43a0006913048228 Mon Sep 17 00:00:00 2001
From: jinlun <jinlun@huawei.com>
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

View File

@ -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 <jinlun@huawei.com> -1470-3
- Remove RPATH link option.
* Fri Jul 30 2021 Guoxiaoqi <guoxiaoqi2@huawei.com> - 1470-2
- Fix build with gcc-10