34 lines
983 B
Diff
34 lines
983 B
Diff
|
|
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
|