!342 [sync] PR-341: Enable strip on x86
From: @openeuler-sync-bot Reviewed-by: @li-yancheng Signed-off-by: @li-yancheng
This commit is contained in:
commit
8a24ab6ea1
16
gcc.spec
16
gcc.spec
@ -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 14
|
%global gcc_release 15
|
||||||
|
|
||||||
%global _unpackaged_files_terminate_build 0
|
%global _unpackaged_files_terminate_build 0
|
||||||
%global _performance_build 1
|
%global _performance_build 1
|
||||||
@ -1663,8 +1663,14 @@ 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
|
%ifarch aarch64
|
||||||
strip -s %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc
|
if [ -e %{buildroot}%{_prefix}/bin/gcc ]; then strip -s %{buildroot}%{_prefix}/bin/gcc; fi
|
||||||
|
if [ -e %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc-12 ]; then strip -s %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc-12; fi
|
||||||
|
%endif
|
||||||
|
%ifarch x86_64
|
||||||
|
if [ -e %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc ]; then strip -s %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc; fi
|
||||||
|
if [ -e %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc-12 ]; then strip -s %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc-12; fi
|
||||||
|
%endif
|
||||||
|
|
||||||
# Remove installed but unpacked files.
|
# Remove installed but unpacked files.
|
||||||
# If any file is useful in the future, remove it from here.
|
# If any file is useful in the future, remove it from here.
|
||||||
@ -2880,6 +2886,10 @@ end
|
|||||||
%doc rpm.doc/changelogs/libcc1/ChangeLog*
|
%doc rpm.doc/changelogs/libcc1/ChangeLog*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 07 2023 zhaozhenyu <zhaozhenyu17@huawei.com> 12.3.1-15
|
||||||
|
- Type: SPEC
|
||||||
|
- DESC: Enable Strip for aarch64 and x86_64
|
||||||
|
|
||||||
* Wed Sep 06 2023 eastb233 <xiezhiheng@huawei.com> 12.3.1-14
|
* Wed Sep 06 2023 eastb233 <xiezhiheng@huawei.com> 12.3.1-14
|
||||||
- Type: Bugfix
|
- Type: Bugfix
|
||||||
- DESC: Package simdmath.h and simdmath_f.h
|
- DESC: Package simdmath.h and simdmath_f.h
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user