From f04627996ae1f660a1a34b6b2ef533665d7652d8 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 13 Sep 2018 01:21:19 +0000 Subject: [PATCH] Remove rpath from executables and libraries --- llvm.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 2f6e2cf..f1e9fe7 100644 --- a/llvm.spec +++ b/llvm.spec @@ -51,7 +51,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver} -Release: 0.13.rc%{rc_ver}%{?dist} +Release: 0.14.rc%{rc_ver}%{?dist} Summary: The Low Level Virtual Machine License: NCSA @@ -89,6 +89,7 @@ BuildRequires: valgrind-devel BuildRequires: libedit-devel # We need python3-devel for pathfix.py. BuildRequires: python3-devel +BuildRequires: chrpath Requires: %{name}-libs%{?_isa} = %{version}-%{release} @@ -276,6 +277,13 @@ cp -R _build/unittests %{buildroot}%{llvm_bindir}/ # FIXME: Can't figure out how to make the find command succeed. find %{buildroot}%{llvm_bindir} -ignore_readdir_race -iname 'cmake*' -exec rm -Rf '{}' ';' || true +# Remove rpath +chrpath --delete %{buildroot}%{_bindir}/* +chrpath --delete %{buildroot}%{_libdir}/*.so* + +for f in `find %{buildroot}%{llvm_bindir} -executable -type f`; do + chrpath --delete $f +done %else # Add version suffix to binaries @@ -417,6 +425,9 @@ fi %endif %changelog +* Wed Sep 12 2018 Tom Stellard - 7.0.0-0.14.rc3 +- Remove rpath from executables and libraries + * Tue Sep 11 2018 Tom Stellard - 7.0.0-0.13.rc3 - Re-enable arm and aarch64 targets on x86_64