Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2532

libbson should link ws2_32 if win32 instead of if not unix

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.10.0
    • Affects Version/s: None
    • Component/s: Build
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      in the CMakeLists.txt file for libbson, ws2_32 is linked it the build is NOT UNIX, but it probably should be it is WIN32, as it is in the cdriver proper.

      https://github.com/mongodb/mongo-c-driver/blob/master/src/libbson/CMakeLists.txt#L235

      https://github.com/mongodb/mongo-c-driver/blob/master/CMakeLists.txt#L671

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: