Add ability to compile KeyDB without MOTD and curl
Former-commit-id: f3794d2c420423ca7dcc51688c478f8ada290786
This commit is contained in:
parent
5de36840ad
commit
da2a3dbf99
@ -107,7 +107,7 @@ endif
|
|||||||
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
|
||||||
FINAL_CXXFLAGS=$(CXX_STD) $(WARN) $(OPT) $(DEBUG) $(CXXFLAGS) $(REDIS_CFLAGS)
|
FINAL_CXXFLAGS=$(CXX_STD) $(WARN) $(OPT) $(DEBUG) $(CXXFLAGS) $(REDIS_CFLAGS)
|
||||||
FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
|
FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
|
||||||
FINAL_LIBS+=-lm -lcurl
|
FINAL_LIBS+=-lm
|
||||||
DEBUG=-g -ggdb
|
DEBUG=-g -ggdb
|
||||||
|
|
||||||
ifneq ($(uname_S),Darwin)
|
ifneq ($(uname_S),Darwin)
|
||||||
@ -171,8 +171,11 @@ else
|
|||||||
# All the other OSes (notably Linux)
|
# All the other OSes (notably Linux)
|
||||||
FINAL_LDFLAGS+= -rdynamic
|
FINAL_LDFLAGS+= -rdynamic
|
||||||
FINAL_LIBS+=-ldl -pthread -lrt -luuid
|
FINAL_LIBS+=-ldl -pthread -lrt -luuid
|
||||||
|
ifneq ($(NO_MOTD),yes)
|
||||||
FINAL_CFLAGS += -DMOTD
|
FINAL_CFLAGS += -DMOTD
|
||||||
FINAL_CXXFLAGS += -DMOTD
|
FINAL_CXXFLAGS += -DMOTD
|
||||||
|
FINAL_LIBS+=-lcurl
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user