From 0dc71b4b77d5fa1a1a3ccbda3db2dc0ae606b0c7 Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Tue, 26 Apr 2022 16:23:50 +0800 Subject: [PATCH] fix build error for openEuler:22.03:LTS:LoongArch --- binutils-LOONGARCH-support.patch | 4 ++-- binutils.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/binutils-LOONGARCH-support.patch b/binutils-LOONGARCH-support.patch index d738988..85ed081 100644 --- a/binutils-LOONGARCH-support.patch +++ b/binutils-LOONGARCH-support.patch @@ -95,8 +95,8 @@ diff -uNr binutils-2.37.org/bfd/bfd-in2.h binutils-2.37/bfd/bfd-in2.h diff -uNr binutils-2.37.org/bfd/config.bfd binutils-2.37/bfd/config.bfd --- binutils-2.37.org/bfd/config.bfd 2022-03-23 16:44:12.029041179 +0800 +++ binutils-2.37/bfd/config.bfd 2022-03-24 16:30:09.328113543 +0800 -@@ -182,6 +182,7 @@ - i[34567]86) targ_archs=bfd_i386_arch ;; +@@ -182,6 +182,7 @@ hppa*) targ_archs=bfd_hppa_arch ;; + i[3-7]86) targ_archs=bfd_i386_arch ;; ia16) targ_archs=bfd_i386_arch ;; lm32) targ_archs=bfd_lm32_arch ;; +loongarch*) targ_archs=bfd_loongarch_arch ;; diff --git a/binutils.spec b/binutils.spec index dc2f96e..f21cf46 100644 --- a/binutils.spec +++ b/binutils.spec @@ -1,14 +1,14 @@ Summary: Binary utilities Name: binutils Version: 2.37 -Release: 8 +Release: 9 License: GPLv3+ URL: https://sourceware.org/binutils Source: https://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz # risc-v do not support gold linker. -%ifnarch riscv64 +%ifnarch riscv64 loongarch64 %bcond_without gold %else %bcond_with gold @@ -373,6 +373,9 @@ fi %{_infodir}/bfd*info* %changelog +* Tue Apr 26 2022 liyanan - 2.37-9 +- fix build error for openEuler:22.03:LTS:LoongArch + * Tue Apr 19 2022 lixing - 2.37-8 - Type:requirements - ID:NA -- Gitee