mdbx: Add MDB_USE_ROBUST to control Robust Mutexes.

Backported from origin.

Change-Id: I416c1d09fb1f290423f29a84831accdaf4436ab0
This commit is contained in:
Leo Yuriev
2015-11-06 17:26:41 +03:00
parent 372a6d8521
commit b430c9a22f
2 changed files with 21 additions and 12 deletions

View File

@@ -1,25 +1,22 @@
# Makefile for liblmdb (Lightning memory-mapped database library).
# Makefile for libmdbx (lightning memory-mapped database library for Linux).
########################################################################
# Configuration. The compiler options must enable threaded compilation.
#
# Preprocessor macros (for CPPFLAGS) of interest...
# Preprocessor macros (for XCFLAGS) of interest...
# Note that the defaults should already be correct for most
# platforms; you should not need to change any of these.
# Read their descriptions in mdb.c if you do:
#
# - MDB_USE_POSIX_SEM
# - MDB_DSYNC
# - MDB_FDATASYNC
# - MDB_FDATASYNC_WORKS
# - MDB_USE_PWRITEV
# - MDB_USE_ROBUST
#
# There may be other macros in mdb.c of interest. You should
# read mdb.c before changing any of them.
#
CC ?= gcc
XCFLAGS ?=
CFLAGS ?= -O2 -g -Wall -Werror -Wno-unused-parameter
CFLAGS += -pthread
CFLAGS += -pthread $(XCFLAGS)
prefix ?= /usr/local
########################################################################