1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/redis/use-systemlib.patch
3 # Copyright (C) 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Source https://github.com/archlinux/svntogit-community/blob/packages/redis/trunk/redis-5.0-use-system-jemalloc.patch
16 diff --git a/src/Makefile b/src/Makefile
17 index 3bc9f11c0..a4b23d986 100644
20 @@ -229,8 +229,8 @@ endif
22 ifeq ($(MALLOC),jemalloc)
23 DEPENDENCY_TARGETS+= jemalloc
24 - FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include
25 - FINAL_LIBS := ../deps/jemalloc/lib/libjemalloc.a $(FINAL_LIBS)
26 + FINAL_CFLAGS+= -DUSE_JEMALLOC -DJEMALLOC_NO_DEMANGLE -I/usr/include/jemalloc
27 + FINAL_LIBS := -ljemalloc -L/usr/lib64 $(FINAL_LIBS)
30 ifeq ($(BUILD_TLS),yes)