-
Type: Improvement
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: None
-
Component/s: None
Right now, we pass options like -DMONGO_SSL when building the mongo client library. However, we don't record those in a config.h header that is included by the headers or installed.
Some of these defines, like MONGO_SSL or _DEBUG, can affect the size and layout of objects.
This means that clients of the library must pass the same definitions on their compilation line or risk subtle crashes and memory corruption.
We should generate a config.h header that captures the relevant defines and ensures that they are visible to the mongoclient headers when used by clients of the library.