From 5ddce8911fbcd024595e923d83c31606f3a48165 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Thu, 20 May 2021 21:27:41 +0800 Subject: [PATCH] fix --- 0001-compiler-flags.patch | 25 +++++++++++++++++++++++++ libabigail.spec | 8 +++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 0001-compiler-flags.patch diff --git a/0001-compiler-flags.patch b/0001-compiler-flags.patch new file mode 100644 index 0000000..36ba20c --- /dev/null +++ b/0001-compiler-flags.patch @@ -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 + diff --git a/libabigail.spec b/libabigail.spec index 94c160b..06154ce 100644 --- a/libabigail.spec +++ b/libabigail.spec @@ -1,11 +1,11 @@ Name: libabigail Version: 1.6 -Release: 3 +Release: 4 Summary: ABI generic analysis and instrumentation library License: LGPLv3+ URL: https://sourceware.org/libabigail/ 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: python3-sphinx texinfo dos2unix dpkg python3-devel python3-rpm 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 %autosetup -n libabigail-%{version} -p1 -sed -i 's/redhat/openEuler/g' build-aux/ltmain.sh %build %configure --disable-silent-rules --disable-zip-archive @@ -93,6 +92,9 @@ fi %doc doc/manuals/html/* README AUTHORS ChangeLog %changelog +* Thu May 20 2021 caodongxia - 1.6-4 +- Fix compiler-flags + * Thu Jul 30 2020 Shinwell Hu - 1.6-3 - Remove extra Requires.