void-packages/srcpkgs/redis/patches/use-system-jemalloc.patch

17 lines
497 B
Diff
Raw Normal View History

diff --git a/src/Makefile.orig b/src/Makefile
index 8b3e959890b5..f20408402611 100644
--- src/Makefile.orig
+++ src/Makefile
@@ -89,9 +89,8 @@ ifeq ($(MALLOC),tcmalloc_minimal)
endif
ifeq ($(MALLOC),jemalloc)
- DEPENDENCY_TARGETS+= jemalloc
- FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include
- FINAL_LIBS+= ../deps/jemalloc/lib/libjemalloc.a -ldl
+ FINAL_CFLAGS+= -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE
+ FINAL_LIBS+= -ljemalloc -ldl
endif
REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)