!10 Support multi-threading build

From: @lyn1001 
Reviewed-by: @liqingqing_1229 
Signed-off-by: @liqingqing_1229
This commit is contained in:
openeuler-ci-bot 2023-01-18 06:13:58 +00:00 committed by Gitee
commit 0382b089d3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 38 additions and 1 deletions

View 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

View File

@ -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