From 7d6c33285e89ae3d5d38ca7699884d6e22ef64a2 Mon Sep 17 00:00:00 2001 From: huang-xiaoquan Date: Mon, 24 Jul 2023 14:59:05 +0800 Subject: [PATCH] [SPEC] Set the gcc_target_platform information --- gcc.spec | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/gcc.spec b/gcc.spec index 15da1b7..b0c440e 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 4 +%global gcc_release 5 %global _unpackaged_files_terminate_build 0 %global _performance_build 1 @@ -140,22 +140,7 @@ Patch0: 0000-Version-Set-version-to-12.3.1.patch Patch1: 0001-CONFIG-Regenerate-configure-file.patch Patch2: 0002-libquadmath-Enable-libquadmath-on-kunpeng.patch -# On ARM EABI systems, we do want -gnueabi to be part of the -# target triple. -%ifnarch %{arm} -%global _gnu %{nil} -%else -%global _gnu -gnueabi -%endif -%ifarch sparcv9 -%global gcc_target_platform sparc64-%{_vendor}-%{_target_os} -%endif -%ifarch ppc ppc64p7 -%global gcc_target_platform ppc64-%{_vendor}-%{_target_os} -%endif -%ifnarch sparcv9 ppc ppc64p7 -%global gcc_target_platform %{_target_platform} -%endif +%global gcc_target_platform %{_arch}-linux-gnu %if %{build_go} # Avoid stripping these libraries and binaries. @@ -2712,6 +2697,10 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Mon Jul 24 2023 huangxiaoquan 12.3.1-5 +- Type:SPEC +- DESC:Set the gcc_target_platform information + * Mon Jul 17 2023 huangxiaoquan 12.3.1-4 - Type:SPEC - DESC:Enable libquadmath on kunpeng -- Gitee