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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: 1.3.0
    • Component/s: packaging
    • None

      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.

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

              Created:
              Updated:
              Resolved: