diff options
author | antirez <antirez@gmail.com> | 2016-05-18 17:48:06 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2016-10-26 09:11:01 +0200 |
commit | 9ada818b8633c3784dbab355dc81e0e049360e83 (patch) | |
tree | 81f56afa2a5308970d4a4e0d6b36c6406d0f7eab | |
parent | 381651fac05728f742631ee9eac03c8a8855733b (diff) | |
download | redis-9ada818b8633c3784dbab355dc81e0e049360e83.tar.gz |
Fix modules compilation when libc malloc is used.
Compiling Redis worked as a side effect of jemalloc target specifying
-ldl as needed linker options, otherwise it is not provided during
linking and dlopen() API will remain unresolved symbols.
-rw-r--r-- | src/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index 648127a25..459bcab83 100644 --- a/src/Makefile +++ b/src/Makefile @@ -55,7 +55,7 @@ endif FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) -I../deps/geohash-int FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) -FINAL_LIBS=-lm +FINAL_LIBS=-lm -ldl DEBUG=-g -ggdb ifeq ($(uname_S),SunOS) @@ -95,7 +95,7 @@ endif ifeq ($(MALLOC),jemalloc) DEPENDENCY_TARGETS+= jemalloc FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include - FINAL_LIBS+= ../deps/jemalloc/lib/libjemalloc.a -ldl + FINAL_LIBS+= ../deps/jemalloc/lib/libjemalloc.a endif REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS) |