Skip to content

ITS#10008 Add support for building DLLs on Cygwin/MSYS2

Christopher Ng requested to merge facboy/openldap:its-10008 into mdb.RE/0.9

This adds support to Makefile for building DLLs on Cygwin/MSYS2. This command will build a functioning lmdb library on MSYS2:

make
prefix="/usr/local"
XIPROGS="msys-lmdb-0.dll"
SOEXT=".dll.a"
CPPFLAGS="-DMDB_USE_POSIX_SEM=1"
LDOUTFLAGS='-Wl,--out-implib,$@ -o msys-lmdb-0.dll'
LMDB_DLL="msys-lmdb-0.dll"

Signed-off-by: Christopher Ng facboy@gmail.com

Merge request reports