py/py.mk: Extra switches to build "embedded" BerkeleyDB BTree lib.

This commit is contained in:
Paul Sokolovsky 2016-07-31 00:39:09 +03:00
parent 2ec943284a
commit 0dfe849413
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ endif
ifeq ($(MICROPY_PY_BTREE),1)
BTREE_DIR = lib/berkeley-db-1.xx
CFLAGS_MOD += -D__DBINTERFACE_PRIVATE=1
CFLAGS_MOD += -D__DBINTERFACE_PRIVATE=1 -Dmpool_error=printf -Dabort=abort_ -Dvirt_fd_t=mp_obj_t "-DVIRT_FD_T_HEADER=<py/obj.h>"
INC += -I../$(BTREE_DIR)/PORT/include
SRC_MOD += extmod/modbtree.c
SRC_MOD += $(addprefix $(BTREE_DIR)/,\