[SPEC] Enable strip on gcc and %{_target_platform}-gcc

Enable strip on gcc and %{_target_platform}-gcc

(cherry picked from commit da577ebd493da6751eb3f870cafc9425c52181c9)
This commit is contained in:
zhenyu--zhao 2023-09-05 20:40:55 +08:00 committed by openeuler-sync-bot
parent 4a678c4275
commit 05db73e18a

View File

@ -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 11
%global gcc_release 12
%global _unpackaged_files_terminate_build 0
%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 \
%{buildroot}%{_libdir}/bfd-plugins/
strip -s %{buildroot}%{_prefix}/bin/gcc
strip -s %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc
%check
cd obj-%{gcc_target_platform}
@ -2758,6 +2761,10 @@ end
%doc rpm.doc/changelogs/libcc1/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
- Type: Sync
- DESC: Sync patch from openeuler/gcc