!53 完善spec文件对riscv64架构的配置

From: @laokz 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2022-08-16 00:26:28 +00:00 committed by Gitee
commit eb0f8c8cbe
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: gdb Name: gdb
Version: 11.1 Version: 11.1
Release: 3 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-1.3 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-1.3
Source: ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.xz Source: ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.xz
@ -230,7 +230,9 @@ export CXXFLAGS="$CFLAGS"
--with-lzma \ --with-lzma \
--without-libunwind \ --without-libunwind \
--enable-64-bit-bfd \ --enable-64-bit-bfd \
%ifnarch riscv64
--enable-inprocess-agent \ --enable-inprocess-agent \
%endif
--with-system-zlib \ --with-system-zlib \
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
--with-intel-pt \ --with-intel-pt \
@ -348,8 +350,8 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py
%{_datadir}/gdb %{_datadir}/gdb
%files gdbserver %files gdbserver
%ifnarch riscv64
%{_bindir}/gdbserver %{_bindir}/gdbserver
%ifnarch riscv64
%{_libdir}/libinproctrace.so %{_libdir}/libinproctrace.so
%endif %endif
@ -366,6 +368,9 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py
%{_infodir}/gdb.info* %{_infodir}/gdb.info*
%changelog %changelog
* Mon Aug 15 2022 laokz <laokz@foxmail.com> - 11.1-4
- fix riscv64 relevant config
* Fri Jul 8 2022 cenhuilin <cenhuilin@kylinos.cn> - 11.1-3 * Fri Jul 8 2022 cenhuilin <cenhuilin@kylinos.cn> - 11.1-3
- set entry point when text segment is missing - set entry point when text segment is missing