!335 [sync] PR-334: [SPEC] Enable strip on gcc and %{_target_platform}-gcc

From: @openeuler-sync-bot 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
This commit is contained in:
openeuler-ci-bot 2023-09-06 01:15:55 +00:00 committed by Gitee
commit 6454920a96
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
%global gcc_major 12 %global gcc_major 12
# Note, gcc_release must be integer, if you want to add suffixes to # Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line. # %%{release}, append them after %%{gcc_release} on Release: line.
%global gcc_release 11 %global gcc_release 12
%global _unpackaged_files_terminate_build 0 %global _unpackaged_files_terminate_build 0
%global _performance_build 1 %global _performance_build 1
@ -1663,6 +1663,9 @@ echo gcc-%{version}-%{release}.%{_arch} > $FULLPATH/rpmver
ln -s ../../libexec/gcc/%{gcc_target_platform}/%{gcc_major}/liblto_plugin.so \ ln -s ../../libexec/gcc/%{gcc_target_platform}/%{gcc_major}/liblto_plugin.so \
%{buildroot}%{_libdir}/bfd-plugins/ %{buildroot}%{_libdir}/bfd-plugins/
strip -s %{buildroot}%{_prefix}/bin/gcc
strip -s %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc
%check %check
cd obj-%{gcc_target_platform} cd obj-%{gcc_target_platform}
@ -2758,6 +2761,10 @@ end
%doc rpm.doc/changelogs/libcc1/ChangeLog* %doc rpm.doc/changelogs/libcc1/ChangeLog*
%changelog %changelog
* Tue Sep 05 2023 zhaozhenyu <zhaozhenyu17@huawei.com> 12.3.1-12
- Type: SPEC
- DESC: Enable Strip for gcc
* Tue Sep 05 2023 huangxiaoquan <huangxiaoquan1@huawei.com> 12.3.1-11 * Tue Sep 05 2023 huangxiaoquan <huangxiaoquan1@huawei.com> 12.3.1-11
- Type: Sync - Type: Sync
- DESC: Sync patch from openeuler/gcc - DESC: Sync patch from openeuler/gcc