From 53b7cf24738b672b37a1f750fb1474b83be25e4b Mon Sep 17 00:00:00 2001 From: eastb233 Date: Sat, 18 Nov 2023 16:27:07 +0800 Subject: [PATCH] Delete RPATH --- binutils.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/binutils.spec b/binutils.spec index 9929a6c..3371403 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,7 +1,7 @@ Summary: Binary utilities Name: binutils Version: 2.34 -Release: 30 +Release: 31 License: GPLv3+ URL: https://sourceware.org/binutils @@ -74,7 +74,7 @@ Provides: bundled(libiberty) Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: gcc, perl, sed, coreutils, dejagnu, zlib-devel, glibc-static, sharutils, bc, libstdc++-static -BuildRequires: bison, m4, gcc-c++, gettext, flex, zlib-devel, texinfo >= 4.0, perl-podlators +BuildRequires: bison, m4, gcc-c++, gettext, flex, zlib-devel, texinfo >= 4.0, perl-podlators, chrpath Requires(post): info coreutils chkconfig Requires(preun):info chkconfig @@ -203,6 +203,9 @@ done install -m 644 include/libiberty.h %{buildroot}%{_prefix}/include chmod +x %{buildroot}%{_libdir}/lib*.so* +# Delete RPATH +chrpath -d %{buildroot}%{_bindir}/* + rm -f %{buildroot}%{_libdir}/lib{bfd,opcodes}.{so,la} %ifarch %{ix86} x86_64 arm @@ -319,6 +322,9 @@ fi %{_infodir}/bfd*info* %changelog +* Sat Nov 18 2023 eastb233 - 2.34-31 +- Delete rpath + * Wed Oct 11 2023 eastb233 - 2.34-30 - Backport a fix about use-after-free issue -- Gitee