From da577ebd493da6751eb3f870cafc9425c52181c9 Mon Sep 17 00:00:00 2001 From: zhenyu--zhao Date: Tue, 5 Sep 2023 20:40:55 +0800 Subject: [PATCH] [SPEC] Enable strip on gcc and %{_target_platform}-gcc Enable strip on gcc and %{_target_platform}-gcc --- gcc.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc.spec b/gcc.spec index a744214..62c874f 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 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 12.3.1-12 +- Type: SPEC +- DESC: Enable Strip for gcc + * Tue Sep 05 2023 huangxiaoquan 12.3.1-11 - Type: Sync - DESC: Sync patch from openeuler/gcc -- Gitee