Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16957

Permit specification of boost library suffix search preference

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc6
    • Affects Version/s: None
    • Component/s: Build
    • None
    • Fully Compatible

      We currently only search -mt and the empty string for boost suffixes when building with --use-system-boost.

      This may not be sufficient on some systems where a user has boost installed to a non-system-searched path and has configured boost to not add the "-mt" adornment to the libraries, despite their having thread support.

      When this setup is used, and we search for boost_system, for example, we will first look for boost_system-mt. The users search path (presumably configured with --extrapath or similar) will be examined for libboost_system-mt, which will not be found. We will then search the system boost installation, which does offer it. So we will choose the -mt adorned version of boost_system, and link against the library in the default search path, rather than in the users custom boost installation.

      We should make it possible to specify the list of suffixes to search (including the empty suffix), as well as suppress all searches, which may be unnecessary on some platforms, like Windows, with autolib linking.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: