[CXX-123] Static archive fails to force inclusion of global initializers Created: 07/Mar/14  Updated: 10/Apr/14  Resolved: 07/Mar/14

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

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

Issue Links:
Related
related to CXX-82 runGlobalInitializersOrDie returns Ba... Closed

 Description   

The client lib requires that some MONGO_INITIALIZERS be run which live in translation units that are otherwise unnecessary for some output binaries. I.e. they exist in cpp files which resolve no symbols in a hypothetical, useful output binary.

In the case of the static archive build of the library, this means that clients must link with --whole-archive, or in the case of windows, that they cannot use the static archive at all.



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

Merged pull request

Comment by Mira Carey [ 07/Mar/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/14

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