This commit is contained in:
caodongxia 2021-05-20 21:27:41 +08:00
parent f0325551ac
commit 5ddce8911f
2 changed files with 30 additions and 3 deletions

25
0001-compiler-flags.patch Normal file
View File

@ -0,0 +1,25 @@
From ab8228fb82a9806b978aff4cc693900729eb0e03 Mon Sep 17 00:00:00 2001
From: caodongxia <315816521@qq.com>
Date: Thu, 20 May 2021 21:11:22 +0800
Subject: [PATCH] create patch
---
build-aux/ltmain.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
index e9c06d7..375e99c 100644
--- a/build-aux/ltmain.sh
+++ b/build-aux/ltmain.sh
@@ -6523,7 +6523,7 @@ func_mode_link ()
old_convenience=
deplibs=
old_deplibs=
- compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"
+ compiler_flags="-specs=/usr/lib/rpm/generic-hardened-ld"
linker_flags=
dllsearchpath=
lib_search_path=`pwd`
--
2.27.0

View File

@ -1,11 +1,11 @@
Name: libabigail Name: libabigail
Version: 1.6 Version: 1.6
Release: 3 Release: 4
Summary: ABI generic analysis and instrumentation library Summary: ABI generic analysis and instrumentation library
License: LGPLv3+ License: LGPLv3+
URL: https://sourceware.org/libabigail/ URL: https://sourceware.org/libabigail/
Source0: http://mirrors.kernel.org/sourceware/libabigail/libabigail-%{version}.tar.gz Source0: http://mirrors.kernel.org/sourceware/libabigail/libabigail-%{version}.tar.gz
Patch0000: 0001-compiler-flags.patch
BuildRequires: gcc-c++ libtool elfutils-devel libxml2-devel doxygen BuildRequires: gcc-c++ libtool elfutils-devel libxml2-devel doxygen
BuildRequires: python3-sphinx texinfo dos2unix dpkg python3-devel python3-rpm BuildRequires: python3-sphinx texinfo dos2unix dpkg python3-devel python3-rpm
BuildRequires: python3-mock python3-unittest2 python3-pyxdg wget mailcap BuildRequires: python3-mock python3-unittest2 python3-pyxdg wget mailcap
@ -35,7 +35,6 @@ The package contains man pages,texinfo files and html manuals for libabigail.
%prep %prep
%autosetup -n libabigail-%{version} -p1 %autosetup -n libabigail-%{version} -p1
sed -i 's/redhat/openEuler/g' build-aux/ltmain.sh
%build %build
%configure --disable-silent-rules --disable-zip-archive %configure --disable-silent-rules --disable-zip-archive
@ -93,6 +92,9 @@ fi
%doc doc/manuals/html/* README AUTHORS ChangeLog %doc doc/manuals/html/* README AUTHORS ChangeLog
%changelog %changelog
* Thu May 20 2021 caodongxia <caodongxia@huawei.com> - 1.6-4
- Fix compiler-flags
* Thu Jul 30 2020 Shinwell Hu <micromotive@qq.com> - 1.6-3 * Thu Jul 30 2020 Shinwell Hu <micromotive@qq.com> - 1.6-3
- Remove extra Requires. - Remove extra Requires.