Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-309

Homebrew package for libmongocrypt has extraneous pkg-config flags

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: C library
    • None

      Doing a fresh install of libmongocrypt results in extraneous flags included in libmongocrypt's package config:

      $ brew install mongodb/brew/libmongocrypt
      $ pkg-config --libs --cflags libmongocrypt
      -DBSON_STATIC -I/usr/local/Cellar/libmongocrypt/1.2.0/include/mongocrypt -I/usr/local/Cellar/mongo-c-driver/1.17.4/include/libbson-1.0 -L/usr/local/Cellar/libmongocrypt/1.2.0/lib -L/usr/local/Cellar/mongo-c-driver/1.17.4/lib -lmongocrypt -lbson-static-1.0 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd
      

      The following flags seem extraneous:

      -DBSON_STATIC -L/usr/local/Cellar/mongo-c-driver/1.17.4/lib -lmongocrypt -lbson-static-1.0 /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd
      

      libmongocrypt statically links libbson. Consumers of libmongocrypt do not need to statically link against libbson.

            Assignee:
            Unassigned Unassigned
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: