!27 [Compiler-rt][RUNPATH] Delete run path in DSO

From: @eastb233 
Reviewed-by: @zhongyunde, @cf-zhao 
Signed-off-by: @cf-zhao
This commit is contained in:
openeuler-ci-bot 2022-12-20 08:58:32 +00:00 committed by Gitee
commit b30433ec14
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -4,7 +4,7 @@
Name: compiler-rt Name: compiler-rt
Version: 12.0.1 Version: 12.0.1
Release: 1 Release: 2
Summary: LLVM "compiler-rt" runtime libraries Summary: LLVM "compiler-rt" runtime libraries
License: NCSA or MIT License: NCSA or MIT
@ -23,6 +23,7 @@ BuildRequires: python3-devel
BuildRequires: llvm-devel = %{version} BuildRequires: llvm-devel = %{version}
# For gpg source verification # For gpg source verification
BuildRequires: gnupg2 BuildRequires: gnupg2
BuildRequires: chrpath
Requires: clang-resource-filesystem%{?isa} = %{version} Requires: clang-resource-filesystem%{?isa} = %{version}
@ -56,6 +57,11 @@ cd _build
cd _build cd _build
%make_install %make_install
# delete run path in DSO
for file in `find %{buildroot}%{_prefix} -name "lib*.so*"`; do
chrpath -d $file
done
# move blacklist/abilist files to where clang expect them # move blacklist/abilist files to where clang expect them
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/share mkdir -p %{buildroot}%{_libdir}/clang/%{version}/share
mv -v %{buildroot}%{_datadir}/*list.txt %{buildroot}%{_libdir}/clang/%{version}/share/ mv -v %{buildroot}%{_datadir}/*list.txt %{buildroot}%{_libdir}/clang/%{version}/share/
@ -71,6 +77,7 @@ do
ln -s ../$i linux/$i ln -s ../$i linux/$i
done done
popd popd
# multilib support: also create symlink from lib to lib64, fixes rhbz#1678240 # multilib support: also create symlink from lib to lib64, fixes rhbz#1678240
# the symlinks will be dangling if the 32 bits version is not installed, but that should be fine # the symlinks will be dangling if the 32 bits version is not installed, but that should be fine
%ifarch %{ix86} %ifarch %{ix86}
@ -113,6 +120,9 @@ fi
%endif %endif
%changelog %changelog
* Tue Dec 20 2022 eastb233 <xiezhiheng@huawei.com> - 12.0.1-2
- Delete run path in DSO
* Mon Dec 27 2021 Chen Chen <chen_aka_jan@163.com> - 12.0.1-1 * Mon Dec 27 2021 Chen Chen <chen_aka_jan@163.com> - 12.0.1-1
- Update to 12.0.1 - Update to 12.0.1