From e4f5c0493008a007ad65bd17b1746f24f1106685 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 25 May 2018 13:36:51 +0200 Subject: [PATCH] Don't append libjemalloc.a otherwise it will be after -ldl. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index d6afa99b..847d7379 100644 --- a/src/Makefile +++ b/src/Makefile @@ -122,7 +122,7 @@ endif ifeq ($(MALLOC),jemalloc) DEPENDENCY_TARGETS+= jemalloc FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include - FINAL_LIBS+= ../deps/jemalloc/lib/libjemalloc.a + FINAL_LIBS := ../deps/jemalloc/lib/libjemalloc.a $(FINAL_LIBS) endif REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)