From ddb47468612ed856bfa32c013bbb43edc9a92b5c Mon Sep 17 00:00:00 2001 From: h00564365 Date: Mon, 19 Jun 2023 12:07:11 +0800 Subject: [PATCH] [SPEC] Add the judgment for processing the libhwasan.so file. --- gcc.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc.spec b/gcc.spec index df24723..a79aa82 100644 --- a/gcc.spec +++ b/gcc.spec @@ -2,7 +2,7 @@ %global gcc_major 12 # Note, gcc_release must be integer, if you want to add suffixes to # %%{release}, append them after %%{gcc_release} on Release: line. -%global gcc_release 1 +%global gcc_release 2 %global _unpackaged_files_terminate_build 0 %global _performance_build 1 @@ -1500,8 +1500,10 @@ chrpath -d %{buildroot}%{_prefix}/%{_lib}/libtsan.so.2.* chmod 755 %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.* chrpath -d %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.* %endif +if [ -e %{buildroot}%{_prefix}/%{_lib}/libhwasan.so.0.* ]; then chmod 755 %{buildroot}%{_prefix}/%{_lib}/libhwasan.so.0.* chrpath -d %{buildroot}%{_prefix}/%{_lib}/libhwasan.so.0.* +fi %if %{build_go} # Avoid stripping these libraries and binaries. chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.21.* @@ -2703,6 +2705,10 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Mon Jun 19 2023 huangxiaaoquan 12.3.0-2 +- Type:Fix +- DESC:Add the judgment for processing the libhwasan.so file + * Tue Jun 13 2023 huangxiaaoquan 12.3.0-1 - Type:Init - DESC:Init GCC 12.3.0 repository -- Gitee