[CXX-61] Default C++ client driver builds to build a shared library (.so, .dylib, or .dll as needed) Created: 19/Feb/14  Updated: 08/Jan/24  Resolved: 07/Mar/14

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: legacy-0.0-26compat-2.6.0-rc1

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The static libmongoclient library is not useable at all on windows (see CXX-59), and requires special handling on ELF targets (via --whole-archive). There are probably similar issues on Darwin (though maybe not: see -all_load vs -noall_load).

Currently the build system defaults to building the static library, and only builds the shared library when requested. We should reverse this, and always build the shared library, and only enable the static library when explicitly requested.



 Comments   
Comment by Andrew Morrow (Inactive) [ 08/Mar/14 ]

mira.carey@mongodb.com Is this really fixed? I think when I filed it my goal was more to make the --sharedclient flag unnecessary. So it would always build the shared client if it was appropriate to your platform.

Comment by Mira Carey [ 07/Mar/14 ]

Fixed via https://github.com/mongodb/mongo-cxx-driver/commit/b9f932b7a22daf35e7101f6e20f9e4671ca7b123

Generated at Wed Feb 07 21:58:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.