-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
On my Mac, the default ./configure line uses bundled Snappy and generates libmongoc-static-1.0-config.cmake with these libraries:
-lsasl2 -lz libsnappy.la
I think the syntax is wrong. Also, libsnappy.la is not installed by "make install". Building libmongoc with the Autotools and then linking a program to libmongoc using the CMake configuration file fails:
> BUILD_SAMPLE_WITH_CMAKE=1 BUILD_LIBMONGOC_WITH_CMAKE= LINK_STATIC=1 sh .evergreen/link-sample-program.sh
...
ld: library not found for -llibsnappy.la
Same for building libmongoc with CMake.
Linking a program to the libmongoc shared lib seems to work fine.
- is related to
-
CDRIVER-2209 Bundle snappy & zlib if not available
- Closed