From 4ffc3d2b35cf0f46b3cdb61edf94a5f0d70d27dd Mon Sep 17 00:00:00 2001 From: zhengshuxin Date: Mon, 10 Jun 2019 09:15:12 +0800 Subject: [PATCH] compiling redis_builder --- app/redis_tools/redis_builder/Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/redis_tools/redis_builder/Makefile.in b/app/redis_tools/redis_builder/Makefile.in index 763978163..a4aa40365 100644 --- a/app/redis_tools/redis_builder/Makefile.in +++ b/app/redis_tools/redis_builder/Makefile.in @@ -8,7 +8,7 @@ CFLAGS = -c -g -W -Wall -Wcast-qual -Wcast-align \ ########################################################### #Check system: # Linux, SunOS, Solaris, BSD variants, AIX, HP-UX -SYSLIB = -lpthread -lz +SYSLIB = -lpthread -lz -ldl CHECKSYSRES = @echo "Unknow system type!";exit 1 UNIXNAME = $(shell uname -s) OSTYPE = $(shell uname -m) @@ -33,7 +33,7 @@ EXIST_CURSOR = $(shell if [ -f "/lib64/libncurses.a" \ ifeq ($(EXIST_READLINE), exist) ifeq ($(EXIST_CURSOR), exist) CFLAGS += -DHAS_READLINE - SYSLIB = -lreadline -lcurses -lpthread -lz + SYSLIB = -lreadline -lcurses -lpthread -lz -ldl endif endif @@ -43,7 +43,7 @@ ifeq ($(findstring FreeBSD, $(UNIXNAME)), FreeBSD) CFLAGS += -Wstrict-prototypes endif CFLAGS += -DFREEBSD -D_REENTRANT - SYSLIB = -lcrypt -lpthread -lz + SYSLIB = -lcrypt -lpthread -lz -ldl RPATH = freebsd endif