From b5e05ab879ede2a55312e21c377724441d134ca0 Mon Sep 17 00:00:00 2001 From: eastb233 Date: Fri, 26 Jan 2024 11:05:30 +0800 Subject: [PATCH] Test RPATH --- binutils.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/binutils.spec b/binutils.spec index 3371403..9514082 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,7 +1,7 @@ Summary: Binary utilities Name: binutils Version: 2.34 -Release: 31 +Release: 32 License: GPLv3+ URL: https://sourceware.org/binutils @@ -204,7 +204,12 @@ install -m 644 include/libiberty.h %{buildroot}%{_prefix}/include chmod +x %{buildroot}%{_libdir}/lib*.so* # Delete RPATH -chrpath -d %{buildroot}%{_bindir}/* +# chrpath -d %{buildroot}%{_bindir}/* +for file in `find %{buildroot} -name "*" -type f`; do + echo $file + readelf -a $file | grep -i "rpath\|runpath" || : +done + rm -f %{buildroot}%{_libdir}/lib{bfd,opcodes}.{so,la} -- Gitee