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

15 lines
480 B
Diff

--- src/Makefile.orig 2016-10-28 16:14:53.422637642 +0200
+++ src/Makefile 2016-10-28 16:15:15.284841414 +0200
@@ -103,9 +103,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
+ FINAL_CFLAGS+= -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE
+ FINAL_LIBS+= -ljemalloc -ldl
endif
REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)