I can't compile mongo-c-driver 1.1.0 with MinGW w64.
Steps to reproduce :
1. Open a MSYS shell
2. Set the environment (for OpenSSL support)
export CFLAGS="-IC:/Libs/amd64/libopenssl/include"
export LDFLAGS="-LC:/Libs/amd64/libopenssl/lib"
3. Run configure and make
./configure --prefix=C:/Libs/amd64/libmongo
make
The error:
Making all in src/libbson
make[1]: Entering directory `/c/mongo-c-driver-1.1.0/src/libbson'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/c/mongo-c-driver-1.1.0/src/libbson'
make[1]: Entering directory `/c/mongo-c-driver-1.1.0'
CCLD libmongoc-priv.la
libtool: error: can't build i686-pc-mingw32 shared library unless -no-undefined is specified
make[1]: *** [libmongoc-priv.la] Error 1
make[1]: Leaving directory `/c/mongo-c-driver-1.1.0'
make: *** [all-recursive] Error 1