diff --git a/gcc.spec b/gcc.spec index 15da1b791128ee10c4ddf3c55f964700a5199975..b0c440e6ad4d923a5691a3d2f83d0115bd148d04 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