From 65355d7aa5bdc6387fb8c2482fa955355338c24c Mon Sep 17 00:00:00 2001 From: liqingqing_1229 Date: Sat, 7 Nov 2020 16:46:38 +0800 Subject: [PATCH] adapt for riscv64 --- gdb.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gdb.spec b/gdb.spec index d6d2d7c..6e7ee83 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1,6 +1,6 @@ Name: gdb Version: 9.2 -Release: 2 +Release: 4 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL Source: ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.xz @@ -227,7 +227,7 @@ test -e %{_libdir}/%{librpmso} mkdir %{gdb_build} cd %{gdb_build} -export CFLAGS="$RPM_OPT_FLAGS -DDNF_DEBUGINFO_INSTALL" +export CFLAGS="$RPM_OPT_FLAGS -DDNF_DEBUGINFO_INSTALL -fPIC" export LDFLAGS="%{?__global_ldflags}" export CXXFLAGS="$CFLAGS" @@ -378,8 +378,10 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py %{_datadir}/gdb %files gdbserver +%ifnarch riscv64 %{_bindir}/gdbserver %{_libdir}/libinproctrace.so +%endif %files help %{_mandir}/*/gcore.1* @@ -394,6 +396,12 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py %{_infodir}/gdb.info* %changelog +* Sat Nov 7 2020 Qingqing Li - 9.2-4 +- cause riscv64 do not support gdbserver, create a empty package for it. + +* Fri Nov 6 2020 Qingqing Li - 9.2-3 +- add fPIC option. + * Sun sep 13 2020 licihua - 9.2-2 - Change the sequence of patch and sources -- Gitee