!106 [sync] PR-105: Fix build error for loongarch64

From: @openeuler-sync-bot 
Reviewed-by: @SuperSix173 
Signed-off-by: @SuperSix173
This commit is contained in:
openeuler-ci-bot 2024-03-28 02:58:06 +00:00 committed by Gitee
commit d34c029cc1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: gdb
Version: 14.1
Release: 1
Release: 2
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: https://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.xz
@ -195,7 +195,7 @@ export CXXFLAGS="$CFLAGS"
--with-lzma \
--without-libunwind \
--enable-64-bit-bfd \
%ifnarch riscv64
%ifnarch riscv64 loongarch64
--enable-inprocess-agent \
%endif
--with-system-zlib \
@ -317,7 +317,7 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py
%files gdbserver
%{_bindir}/gdbserver
%ifnarch riscv64
%ifnarch riscv64 loongarch64
%{_libdir}/libinproctrace.so
%endif
@ -335,6 +335,9 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py
%{_infodir}/ctf-spec.info.gz
%changelog
* Wed Mar 6 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 14.1-2
- Fix build error for loongarch64
* Wed Jan 24 2024 liuchao <liuchao173@huawei.com> - 14.1-1
- upgrade GDB version to 14.1:
- GDB no longer support AiX 4.x, 5.x and 6.x. The minimum version supported is AiX 7.1.