!10 Support multi-threading build
From: @lyn1001 Reviewed-by: @liqingqing_1229 Signed-off-by: @liqingqing_1229
This commit is contained in:
commit
0382b089d3
33
0001-support-multi-threading-build.patch
Normal file
33
0001-support-multi-threading-build.patch
Normal file
@ -0,0 +1,33 @@
|
||||
From 836a723c8f95224a7820a6a3a039423f59b2b278 Mon Sep 17 00:00:00 2001
|
||||
From: "kouhuiying@uniontech.com" <kouhuiying@uniontech.com>
|
||||
Date: Tue, 17 Jan 2023 17:45:29 +0800
|
||||
Subject: [PATCH] Support multi-threading build Fixes: #867 Signed-off-by:
|
||||
kouhuiying@uniontech.com <kouhuiying@uniontech.com>
|
||||
Refer: https://github.com/memkind/memkind/pull/868
|
||||
|
||||
---
|
||||
Makefile.am | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index e44f9002d..dc40af111 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -689,7 +689,7 @@ memkind-$(VERSION).spec:
|
||||
rpm: dist
|
||||
$(MAKE) version="$(VERSION)" -f memkind.spec.mk $@
|
||||
|
||||
-all: jemalloc_deps static_lib
|
||||
+all: static_lib
|
||||
|
||||
# the script merge memkind and jemalloc libraries into one static library.
|
||||
define ar_prog
|
||||
@@ -700,7 +700,7 @@ save\n\
|
||||
end
|
||||
endef
|
||||
|
||||
-static_lib: libmemkind.la
|
||||
+static_lib: jemalloc_deps libmemkind.la
|
||||
bash -c "ar -M < <(echo -e '$(ar_prog)')"
|
||||
cp libmemkind.a .libs/
|
||||
rm libmemkind.a
|
||||
@ -1,10 +1,11 @@
|
||||
Name: memkind
|
||||
Summary: Extensible Heap Manager for User
|
||||
Version: 1.13.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: BSD
|
||||
URL: http://memkind.github.io/memkind
|
||||
Source0: https://github.com/memkind/memkind/archive/v1.13.0/%{name}-%{version}.tar.gz
|
||||
Patch0001: 0001-support-multi-threading-build.patch
|
||||
|
||||
BuildRequires: automake libtool numactl-devel systemd gcc gcc-c++
|
||||
ExclusiveArch: x86_64 aarch64
|
||||
@ -80,6 +81,9 @@ popd
|
||||
%{_mandir}/man7/*
|
||||
|
||||
%changelog
|
||||
* Wed Jan 18 2023 liyanan <liyanan32@h-partners.com> - 1.13.0-2
|
||||
- Support multi-threading build
|
||||
|
||||
* Mon Jun 6 2022 Hesham Almatary <hesham.almatary@huawei.com> - 1.13.0-1
|
||||
- Upgrade to version 1.13.0 and allow building for aarch64
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user