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

Building MongoDB server in Windows with static OpenSSL lib?

    • Type: Icon: Question Question
    • Resolution: Incomplete
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.2.4
    • Component/s: Build
    • None
    • Fully Compatible
    • Platforms 12 (04/01/16)

      Is it possible to build mongo.exe / mongod.exe in Windows with a static link to the openssl libs? When I try I with an openssl build using a static libeay32.lib & ssleay32.lib, I get an error from scons "Couldn't find OpenSSL ssl.h header and library").

      Building mongo with the same openssl directory built with a dynamic libeay32.dll & .lib and ssleay32.dll & .lib works. But I would prefer to use the staticly linked openssl.

      My scons build line looks like this:

      scons MSVC_VERSION=12.0 --ssl CPPPATH=s:\sdk\openssl-1.0.2e-VS2013\include LIBPATH=s:\sdk\openssl-1.0.2e-VS2013\win64\lib --release --win-version-min=win7 all

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

              Created:
              Updated:
              Resolved: