!46 Resolving loongarch64 build error
From: @dpdwaj Reviewed-by: @liqingqing_1229 Signed-off-by: @liqingqing_1229
This commit is contained in:
commit
f01e51c651
26
0001-Resolving-loongarch64-build-error.patch
Normal file
26
0001-Resolving-loongarch64-build-error.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From c0a42b47a90003b6d23c8251ec5b27ea849cc279 Mon Sep 17 00:00:00 2001
|
||||
From: doupengda <doupengda@loongson.cn>
|
||||
Date: Wed, 12 Jul 2023 06:29:11 +0000
|
||||
Subject: [PATCH] Resolving loongarch64 build error
|
||||
|
||||
---
|
||||
src/base/linux_syscall_support.h | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/base/linux_syscall_support.h b/src/base/linux_syscall_support.h
|
||||
index b807b11..8400732 100644
|
||||
--- a/src/base/linux_syscall_support.h
|
||||
+++ b/src/base/linux_syscall_support.h
|
||||
@@ -993,6 +993,9 @@ struct kernel_stat {
|
||||
#ifndef __NR_fstatat
|
||||
#define __NR_fstatat 79
|
||||
#endif
|
||||
+#ifndef __NR_fstat
|
||||
+#define __NR_fstat 80
|
||||
+#endif
|
||||
#ifndef __NR_getdents64
|
||||
#define __NR_getdents64 61
|
||||
#endif /* End of loongarch64 defininitions */
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: gperftools
|
||||
Version: 2.10
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: high-performance malloc and performance analysis tools
|
||||
|
||||
License: BSD-3-Clause
|
||||
@ -13,6 +13,7 @@ Patch9000: issue-1122-fix-bus-error-on-aarch64.patch
|
||||
#https://github.com/gperftools/gperftools/issues/890
|
||||
Patch9001: skip-heapchecker-in-arm-arch.patch
|
||||
Patch9002: avoid-exceed-int-range.patch
|
||||
Patch9003: 0001-Resolving-loongarch64-build-error.patch
|
||||
|
||||
BuildRequires: autoconf automake gcc-c++
|
||||
BuildRequires: libtool libunwind-devel perl-generators
|
||||
@ -107,6 +108,9 @@ LD_LIBRARY_PATH=./.libs make check
|
||||
%{_mandir}/man1/*.1.gz
|
||||
|
||||
%changelog
|
||||
* Wed Jul 12 2023 doupengda <doupengda@loongson.cn> - 2.10-3
|
||||
- Resolving loongarch64 build error
|
||||
|
||||
* Wed Aug 03 2022 liukuo <liukuo@kylinos.cn> - 2.10-2
|
||||
- License compliance rectification
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user