From 91eb41e4073f5d85482b3e7cc438a797927952d7 Mon Sep 17 00:00:00 2001 From: Guoguo Date: Thu, 9 Nov 2023 01:54:36 +0000 Subject: [PATCH] Add support for riscv64 Signed-off-by: Guoguo --- gdb.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb.spec b/gdb.spec index 6c112e1..a4c54e0 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 @@ -178,7 +178,7 @@ export CXXFLAGS="$CFLAGS" --with-lzma \ --without-libunwind \ --enable-64-bit-bfd \ -%ifnarch loongarch64 +%ifnarch loongarch64 riscv64 --enable-inprocess-agent \ %endif --with-system-zlib \ @@ -190,7 +190,7 @@ export CXXFLAGS="$CFLAGS" --with-mpfr \ --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 @@ -275,7 +275,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 @@ -285,6 +285,9 @@ cd %{gdb_build} %changelog +* Thu Nov 9 2023 Guoguo - 13.2-2 +- Add support for riscv64 + * Tue Oct 31 2023 Wenlong Zhang - 13.2-1 - update to 13.2 -- Gitee