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

pkgconfig libmongoc-1.0.pc: fix order of of libraries

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.4.0
    • 1.3.0
    • packaging
    • None

    Description

      In libmongoc-1.0.pc the Libs line is

      Libs: -lsasl2 -framework Security -framework CoreFoundation  -L${libdir} -lmongoc-1.0
      

      Some systems or tool chains process libaries in order and only link used functions. For such systems the order of the libraries is significant. Since mongoc-1.0 depends on the other libraries, this ordering might be better:

      Libs: -L${libdir} -lmongoc-1.0  -lsasl2 -framework Security -framework CoreFoundation 
      

      I've had to edit the pc file manually recently to get a project to build properly.
      I've been using r1.3. The file appears to be unchanged through recent master 26494954a.

      Thanks.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            david.daly@mongodb.com David Daly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: