Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-123

Static archive fails to force inclusion of global initializers

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: