From da2a3dbf99adeebb8526cc5c30b5bde759b3b4b9 Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 13 Nov 2020 20:51:30 +0000 Subject: [PATCH] Add ability to compile KeyDB without MOTD and curl Former-commit-id: f3794d2c420423ca7dcc51688c478f8ada290786 --- src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 0822e82f2..dbb18af65 100644 --- a/src/Makefile +++ b/src/Makefile @@ -107,7 +107,7 @@ endif FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) FINAL_CXXFLAGS=$(CXX_STD) $(WARN) $(OPT) $(DEBUG) $(CXXFLAGS) $(REDIS_CFLAGS) FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG) -FINAL_LIBS+=-lm -lcurl +FINAL_LIBS+=-lm DEBUG=-g -ggdb ifneq ($(uname_S),Darwin) @@ -171,8 +171,11 @@ else # All the other OSes (notably Linux) FINAL_LDFLAGS+= -rdynamic FINAL_LIBS+=-ldl -pthread -lrt -luuid +ifneq ($(NO_MOTD),yes) FINAL_CFLAGS += -DMOTD FINAL_CXXFLAGS += -DMOTD + FINAL_LIBS+=-lcurl +endif endif endif endif