diff --git a/0001-support-multi-threading-build.patch b/0001-support-multi-threading-build.patch new file mode 100644 index 0000000..ceb51a7 --- /dev/null +++ b/0001-support-multi-threading-build.patch @@ -0,0 +1,33 @@ +From 836a723c8f95224a7820a6a3a039423f59b2b278 Mon Sep 17 00:00:00 2001 +From: "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 +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 diff --git a/memkind.spec b/memkind.spec index a95ec13..13e79c3 100644 --- a/memkind.spec +++ b/memkind.spec @@ -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 - 1.13.0-2 +- Support multi-threading build + * Mon Jun 6 2022 Hesham Almatary - 1.13.0-1 - Upgrade to version 1.13.0 and allow building for aarch64