mdbx-windows: fix MDBX_AVOID_CRT option & ntdll.def distribution.

Resolve https://github.com/erthink/libmdbx/issues/100

Change-Id: I18ab055e79e249fca856353b2585739c88e01758
This commit is contained in:
Leonid Yuriev
2020-05-10 03:41:28 +03:00
parent a238179c23
commit 5b4b3fa9ea
3 changed files with 17 additions and 4 deletions

View File

@@ -113,7 +113,7 @@ define uname2titer
esac
endef
DIST_EXTRA := LICENSE README.md CMakeLists.txt GNUmakefile Makefile VERSION config.h.in \
DIST_EXTRA := LICENSE README.md CMakeLists.txt GNUmakefile Makefile VERSION config.h.in ntdll.def \
$(addprefix man1/, $(MANPAGES)) cmake/compiler.cmake cmake/profile.cmake cmake/utils.cmake
DIST_SRC := mdbx.h mdbx.c $(addsuffix .c, $(TOOLS))
@@ -280,11 +280,14 @@ dist/$(1): $(1)
mkdir -p $$(dir $$@) && sed -e '/^#> dist-cutoff-begin/,/^#< dist-cutoff-end/d' $$< > $$@
endef
$(foreach file,$(filter-out man1/% VERSION %.in,$(DIST_EXTRA)),$(eval $(call dist-extra-rule,$(file))))
$(foreach file,$(filter-out man1/% VERSION %.in ntdll.def,$(DIST_EXTRA)),$(eval $(call dist-extra-rule,$(file))))
dist/VERSION: src/version.c
mkdir -p dist/ && echo "$(MDBX_VERSION_GIT).$(MDBX_REVISION_GIT)" > $@
dist/ntdll.def: src/ntdll.def
mkdir -p dist/cmake/ && cp $< $@
dist/config.h.in: src/config.h.in
mkdir -p dist/cmake/ && cp $< $@