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

Vendor the bundled zlib with the Autotools build, instead of installing it

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • 1.10.0
    • None
    • Build, libmongoc
    • None

    Description

      Our Autotools build system's approach to providing zlib on systems where it is not already installed, is to vendor its source files, then build the library and install it in the system library path along with libmongoc at build time. This is eccentric, and makes problems for users who might install zlib themselves later on.

      Let's completely vendor zlib into libmongoc if not provided by the system - compile its code into libmongoc with no link-time visible changes to programs that link to libmongoc.

      Once this is done, don't set ZLIB_LIBRARIES to "-lz" when with_zlib=bundled in CheckZlib.m4.

      It appears to me that the CMake build system already handles this correctly, so if we do CDRIVER-1349 then this problem might go away.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: