ITS#10008 Add support for building DLLs on Cygwin/MSYS2
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