[RPM] Delete rpath in liblsan libasan libubsan libtsan

(cherry picked from commit e21ed8e40c1f9d306aed9e8b3007fdc37b292911)
This commit is contained in:
liyancheng 2022-12-19 21:06:07 +08:00 committed by openeuler-sync-bot
parent 9a577e6bdc
commit ef9a21e6f1

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