From 38d21685ad8a5ee09744225c7fc9ce58a0c5e860 Mon Sep 17 00:00:00 2001 From: liyancheng <412998149@qq.com> Date: Mon, 19 Dec 2022 21:06:07 +0800 Subject: [PATCH] [RPM] Delete rpath in liblsan libasan libubsan libtsan (cherry picked from commit e21ed8e40c1f9d306aed9e8b3007fdc37b292911) --- gcc.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc.spec b/gcc.spec index 61e87f4..781fdb4 100644 --- a/gcc.spec +++ b/gcc.spec @@ -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 -- Gitee