!241 [sync] PR-231: [RPM] Delete rpath in liblsan libasan libubsan libtsan

From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
This commit is contained in:
openeuler-ci-bot 2023-01-06 02:46:44 +00:00 committed by Gitee
commit 18ee7261fc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -61,7 +61,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
Release: 18
Release: 19
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
URL: https://gcc.gnu.org
@ -73,7 +73,7 @@ BuildRequires: binutils >= 2.31
BuildRequires: glibc-headers
BuildRequires: libtool, zlib-devel, texinfo, flex, bison
BuildRequires: gmp-devel >= 4.1.2-8, mpfr-devel >= 3.1.0, libmpc-devel >= 0.8.1
BuildRequires: gcc, gcc-c++, make
BuildRequires: gcc, gcc-c++, make, chrpath
%if %{build_go}
BuildRequires: hostname, procps
%endif
@ -1573,15 +1573,19 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/libatomic.so.1.*
%endif
%if %{build_libasan}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libasan.so.6.*
chrpath -d %{buildroot}%{_prefix}/%{_lib}/libasan.so.6.*
%endif
%if %{build_libubsan}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libubsan.so.1.*
chrpath -d %{buildroot}%{_prefix}/%{_lib}/libubsan.so.1.*
%endif
%if %{build_libtsan}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libtsan.so.0.*
chrpath -d %{buildroot}%{_prefix}/%{_lib}/libtsan.so.0.*
%endif
%if %{build_liblsan}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.*
chrpath -d %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.*
%endif
%if %{build_go}
# Avoid stripping these libraries and binaries.
@ -2755,6 +2759,12 @@ end
%doc rpm.doc/changelogs/libcc1/ChangeLog*
%changelog
* Mon Dec 19 2022 liyancheng <412998149@qq.com> - 10.3.1-19
- Type:Fix
- ID:NA
- SUG:NA
- DESC:Delete rpath in liblsan,libasan,libubsan,libtsan
* Thu Dec 8 2022 liyancheng <412998149@qq.com> - 10.3.1-18
- Type:Sync
- ID:NA