summarylogtreecommitdiffstats
path: root/valkey.dir-jemalloc.patch
blob: 62aee72683f23db3d0650676b3f7ee57714b2740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --unified --recursive --text valkey.orig/src/Makefile valkey.new/src/Makefile
--- valkey.orig/src/Makefile	2024-04-16 06:18:47.000000000 +0200
+++ valkey.new/src/Makefile	2024-04-24 22:24:12.967476997 +0200
@@ -275,8 +275,8 @@
 
 ifeq ($(MALLOC),jemalloc)
 	DEPENDENCY_TARGETS+= jemalloc
-	FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include
-	FINAL_LIBS := ../deps/jemalloc/lib/libjemalloc.a $(FINAL_LIBS)
+	FINAL_CFLAGS+= -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE -I/usr/include/jemalloc
+	FINAL_LIBS := -ljemalloc $(FINAL_LIBS)
 endif
 
 # LIBSSL & LIBCRYPTO
diff --unified --recursive --text valkey.orig/valkey.conf valkey.new/valkey.conf
--- valkey.orig/valkey.conf	2024-04-16 06:18:47.000000000 +0200
+++ valkey.new/valkey.conf	2024-04-24 22:23:23.050733391 +0200
@@ -504,7 +504,7 @@
 # The Append Only File will also be created inside this directory.
 #
 # Note that you must specify a directory here, not a file name.
-dir ./
+dir /var/lib/valkey/
 
 ################################# REPLICATION #################################