summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Yeager <luke.yeager@gmail.com>2015-09-25 15:53:54 -0700
committerLuke Yeager <luke.yeager@gmail.com>2015-09-25 15:55:40 -0700
commitb93afe8378cd66d9bf375a0f492a30f9db77e8ae (patch)
treeb5f6e6a203a1bb564f046c56d4fef667d6cc2458 /Makefile
parentaaf4a4557668dfb75c540903ec02ed5821f75835 (diff)
downloadcaffeonacl-b93afe8378cd66d9bf375a0f492a30f9db77e8ae.tar.gz
caffeonacl-b93afe8378cd66d9bf375a0f492a30f9db77e8ae.tar.bz2
caffeonacl-b93afe8378cd66d9bf375a0f492a30f9db77e8ae.zip
Add ALLOW_LMDB_NOLOCK build option
This option lets you open LMDB files with the MDB_NOLOCK flag. You should not set this flag if you will be reading LMDBs with any possibility of simultaneous read and write.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5fb6394e..7cc73931 100644
--- a/Makefile
+++ b/Makefile
@@ -313,6 +313,9 @@ ifeq ($(USE_LEVELDB), 1)
endif
ifeq ($(USE_LMDB), 1)
COMMON_FLAGS += -DUSE_LMDB
+ifeq ($(ALLOW_LMDB_NOLOCK), 1)
+ COMMON_FLAGS += -DALLOW_LMDB_NOLOCK
+endif
endif
# CPU-only configuration