From 5962cb8911d93f70f4e30827c6f87548cfba8cde Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Thu, 22 Oct 2015 11:21:52 +0200 Subject: [PATCH] force LMDB if RONLY --- Makefile | 8 +++++--- config.mk.in | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9ddd923..d6985d2 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,11 @@ ifeq ($(WITH_KILL),yes) CFLAGS += -DWITH_KILL=1 endif +ifeq ($(WITH_RONLY),yes) + CFLAGS += -DWITH_RONLY=1 + WITH_LMDB = yes +endif + ifeq ($(WITH_LMDB),yes) CFLAGS += -DWITH_LMDB=1 -Imdb/ OTR_OBJS += gcache.o @@ -53,9 +58,6 @@ ifneq ($(APIKEY),) CFLAGS += -DAPIKEY="\"$(APIKEY)\"" endif -ifeq ($(WITH_RONLY),yes) - CFLAGS += -DWITH_RONLY=1 -endif CFLAGS += -DSTORAGEDEFAULT=\"$(STORAGEDEFAULT)\" -DDOCROOT=\"$(DOCROOT)\" diff --git a/config.mk.in b/config.mk.in index de91f53..aba2ac3 100644 --- a/config.mk.in +++ b/config.mk.in @@ -18,6 +18,7 @@ WITH_PING ?= yes WITH_KILL ?= no # Do you want R_only support? (Probably not; this is for Hosted) +# If you set this to `yes', WITH_LMDB will be set to yes WITH_RONLY ?= no # Where should the recorder store its data? This directory must