From c32d7b3e5ebf81e840fdf00453279e7a07f667ec Mon Sep 17 00:00:00 2001 From: d00573793 Date: Mon, 19 Jun 2023 22:40:34 +0800 Subject: [PATCH] [gcc-cross] Fix the compilation problem caused by the missing code segment of crtbeginS.o --- gcc-cross.spec | 8 +++++++- gcc_arm32le/gcc_arm_linux_release.sh | 4 +--- gcc_arm64le/gcc_aarch64_linux_release.sh | 4 +--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/gcc-cross.spec b/gcc-cross.spec index d97068a..2559840 100644 --- a/gcc-cross.spec +++ b/gcc-cross.spec @@ -1,7 +1,7 @@ Summary: C/C++ Cross Compiler Toolchain Name: gcc-cross Version: 1.0 -Release: 6 +Release: 7 # libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have # GCC Runtime Exception. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD @@ -42,6 +42,12 @@ cp %{_builddir}/output/gcc_arm32le/gcc_arm32le.tar.gz %{buildroot}/tmp %attr(755, root, root) /tmp/gcc_arm32le.tar.gz %changelog +* Mon Jun 19 2023 dingguangya - 1.0-7 +-Type:Fix +-ID:NA +-SUG:NA +-DESC: Fix the compilation problem caused by the missing code segment of crtbeginS.o + * Wed Jun 14 2023 dingguangya - 1.0-6 -Type:Fix -ID:NA diff --git a/gcc_arm32le/gcc_arm_linux_release.sh b/gcc_arm32le/gcc_arm_linux_release.sh index ee6be72..6399557 100755 --- a/gcc_arm32le/gcc_arm_linux_release.sh +++ b/gcc_arm32le/gcc_arm_linux_release.sh @@ -109,10 +109,8 @@ for file in $(find "$PREFIX" -name "*") ; do if [[ $get_arch =~ "x86_64" ]] then res1=$(echo $result | grep "ARM" | cat) - if [[ "$res1" != "" ]] + if [[ "$res1" == "" ]] then - $PREFIX/bin/$TARGET-strip $file - else strip $file fi else diff --git a/gcc_arm64le/gcc_aarch64_linux_release.sh b/gcc_arm64le/gcc_aarch64_linux_release.sh index ba32f32..b825ec6 100755 --- a/gcc_arm64le/gcc_aarch64_linux_release.sh +++ b/gcc_arm64le/gcc_aarch64_linux_release.sh @@ -111,10 +111,8 @@ for file in $(find "$PREFIX" -name "*") ; do if [[ $get_arch =~ "x86_64" ]] then res1=$(echo $result | grep "ARM" | cat) - if [[ "$res1" != "" ]] + if [[ "$res1" == "" ]] then - $PREFIX/bin/$TARGET-strip $file - else strip $file fi else -- Gitee