Fix build error for loongarch64

(cherry picked from commit 7249f753cbcb2a23ba556576e3d0da69047d68a2)
This commit is contained in:
Wenlong Zhang 2024-03-07 06:19:25 +00:00 committed by openeuler-sync-bot
parent 7ef6d27b64
commit 97a75562ee

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.