Replace chrpath with patchelf.
chrpath is old and unsupported debian utility
This commit is contained in:
parent
1ad89f7a35
commit
f25b5df62c
1 changed files with 6 additions and 6 deletions
12
gcc.spec
12
gcc.spec
|
|
@ -7,7 +7,7 @@ License: GPL
|
|||
URL: https://gcc.gnu.org
|
||||
Source0: https://mirror.tochlab.net/pub/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc gcc-c++ make gmp-devel mpfr-devel libmpc-devel chrpath
|
||||
BuildRequires: gcc gcc-c++ make gmp-devel mpfr-devel libmpc-devel patchelf
|
||||
Requires: bash
|
||||
|
||||
%description
|
||||
|
|
@ -30,11 +30,11 @@ export LDFLAGS=""
|
|||
%install
|
||||
%make_install
|
||||
#find %{buildroot} -type f -executable -name "lib*san*" -print0 | xargs -0 chrpath -d 2>/dev/null || true
|
||||
chrpath -d %{buildroot}/usr/lib64/libhwasan.so.0.0.0
|
||||
chrpath -d %{buildroot}/usr/lib64/libtsan.so.2.0.0
|
||||
chrpath -d %{buildroot}/usr/lib64/libasan.so.8.0.0
|
||||
chrpath -d %{buildroot}/usr/lib64/liblsan.so.0.0.0
|
||||
chrpath -d %{buildroot}/usr/lib64/libubsan.so.1.0.0
|
||||
patchelf --remove-rpath %{buildroot}/usr/lib64/libhwasan.so.0.0.0
|
||||
patchelf --remove-rpath %{buildroot}/usr/lib64/libtsan.so.2.0.0
|
||||
patchelf --remove-rpath %{buildroot}/usr/lib64/libasan.so.8.0.0
|
||||
patchelf --remove-rpath %{buildroot}/usr/lib64/liblsan.so.0.0.0
|
||||
patchelf --remove-rpath %{buildroot}/usr/lib64/libubsan.so.1.0.0
|
||||
|
||||
|
||||
%files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue