-
Type: Bug
-
Resolution: Done
-
Priority: 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.
- depends on
-
CDRIVER-3906 Do not require consumers of static libbson to link to libm on macOS
- Closed