From d8577e69bc9532250d814f4be8356df5a3b71262 Mon Sep 17 00:00:00 2001 From: Guost123 Date: Fri, 25 Apr 2025 16:54:34 +0800 Subject: [PATCH] adapt for riscv64 --- gdb.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb.spec b/gdb.spec index 7013816..339b587 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global _python_bytecompile_extra 0 %global librpmso librpm.so.9 @@ -197,7 +197,7 @@ export CXXFLAGS="$CFLAGS" --with-lzma \ --without-libunwind \ --enable-64-bit-bfd \ -%ifnarch loongarch64 +%ifnarch loongarch64 riscv64 --enable-inprocess-agent \ %endif --with-system-zlib \ @@ -208,7 +208,7 @@ export CXXFLAGS="$CFLAGS" %endif --with-auto-load-dir='$debugdir:$datadir/auto-load' \ --with-auto-load-safe-path='$debugdir:$datadir/auto-load' \ - --enable-targets=aarch64-linux-gnu + --enable-targets=aarch64-linux-gnu,riscv64-linux-gnu %make_build CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" maybe-configure-gdb perl -i.relocatable -pe 's/^(D\[".*_RELOCATABLE"\]=" )1(")$/${1}0$2/' gdb/config.status @@ -293,7 +293,7 @@ cd %{gdb_build} %{_bindir}/gdbserver %{abidir}/gdbserver-option.list %{_mandir}/*/gdbserver.1* -%ifnarch loongarch64 +%ifnarch loongarch64 riscv64 %{_libdir}/libinproctrace.so %{abidir}/libinproctrace.dump %endif @@ -303,6 +303,9 @@ cd %{gdb_build} %changelog +*Fri Apr 25 2025 Shangtong Guo - 14.2-2 +- add support for riscv64 build + * Thu Mar 13 2025 mgb01105731 - 14.2-1 - Update to 14.2 from 13.2 - Delete patches by the reason of the existence of similar fixes upstream and -- Gitee