You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by hu...@apache.org on 2022/05/09 02:01:43 UTC
[incubator-kvrocks] branch unstable updated: Fix can't find jemalloc when building with makefile on MacOSX (#557)
This is an automated email from the ASF dual-hosted git repository.
hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new a5a5434 Fix can't find jemalloc when building with makefile on MacOSX (#557)
a5a5434 is described below
commit a5a5434a93388137be640c55b5440a66f42e1659
Author: hulk <hu...@gmail.com>
AuthorDate: Mon May 9 10:01:38 2022 +0800
Fix can't find jemalloc when building with makefile on MacOSX (#557)
The root cause of this issue is that rocksdb would auto detect and link
the jemalloc library, but Kvrocks doesn't do that. So it will cause missing
some jemalloc symbols when linking.
---
src/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/Makefile b/src/Makefile
index 2d85946..fba79de 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -57,6 +57,7 @@ FINAL_LIBS+= $(GLOG) $(LIBEVENT) $(LIBEVENT_PTHREADS) $(ROCKSDB) $(LUA)
# Operating system
ifeq ($(uname_S),Darwin)
# Darwin
+ export ROCKSDB_DISABLE_JEMALLOC=1
DISABLE_JEMALLOC=1
else
endif