diff --git a/gcc.spec b/gcc.spec index 72532e0bca3a4ba647ea90ab922a8059a7daa5d2..81354d4feccdb0b22247409c820ad39d1429a229 100644 --- a/gcc.spec +++ b/gcc.spec @@ -2,7 +2,7 @@ %global gcc_major 14 # 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 1 +%global gcc_release 2 %global nvptx_tools_gitrev 87ce9dc5999e5fca2e1d3478a30888d9864c9804 %global newlib_cygwin_gitrev d45261f62a15f8abd94a1031020b9a9f455e4eed %global _unpackaged_files_terminate_build 0 @@ -1176,7 +1176,9 @@ CONFIGURE_OPTS="\ --enable-shared \ --enable-threads=posix \ --enable-checking=release \ +%ifnarch loongarch64 --disable-multilib \ +%endif --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \ --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only \ --enable-libstdcxx-backtrace \ @@ -1200,7 +1202,6 @@ CONFIGURE_OPTS="\ --with-arch=rv64gc --with-abi=lp64d --with-multilib-list=lp64d \ %endif %ifarch loongarch64 - --with-arch=loongarch64 \ --with-abi=lp64d \ --enable-tls \ --with-long-double-128 \ @@ -1356,7 +1357,7 @@ mkdir -p %{buildroot} # RISC-V ABI wants to install everything in /lib64/lp64d or /usr/lib64/lp64d. # Make these be symlinks to /lib64 or /usr/lib64 respectively. See: -%ifarch riscv64 +%ifarch riscv64 loongarch64 for d in %{buildroot}%{_libdir} %{buildroot}/%{_lib} \ %{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib} \ %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_platform}/%{_lib}; do @@ -2506,7 +2507,9 @@ end %dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/d %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/d21 +%if %{build_d} %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgphobos.spec +%endif %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgdruntime.so %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgphobos.so @@ -2860,6 +2863,10 @@ end %endif %changelog +* Wed Mar 11 2026 Wenlong Zhang - 14.3.1-2 +- [Type] bugfix +- [DESC] fix build error on loongarch64 + * Tue Sep 23 2025 OpenCloudOS Release Engineering - 14.3.1-1 - Add gcc riscv rva23 extension support - Patches merged in gcc tarball sources