Skip to content

Commit e9f0f9d

Browse files
committed
add -pthread to example project build scripts
This is a workaround until CDRIVER-4776 is resolved.
1 parent f7e04dd commit e9f0f9d

File tree

2 files changed

+4
-2
lines changed
  • examples/projects

2 files changed

+4
-2
lines changed

examples/projects/bsoncxx/pkg-config/static/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ CXX_STANDARD=${CXX_STANDARD:-11}
1313
rm -rf build/*
1414
cd build
1515
$CXX $CXXFLAGS -Wall -Wextra -Werror -std="c++${CXX_STANDARD}" -c -o hello_bsoncxx.o ../../../hello_bsoncxx.cpp $(pkg-config --cflags libbsoncxx-static)
16-
$CXX $LDFLAGS -std="c++${CXX_STANDARD}" -o hello_bsoncxx hello_bsoncxx.o $(pkg-config --libs libbsoncxx-static)
16+
# TODO: remove `-pthread` once CDRIVER-4776 is resolved.
17+
$CXX $LDFLAGS -pthread -std="c++${CXX_STANDARD}" -o hello_bsoncxx hello_bsoncxx.o $(pkg-config --libs libbsoncxx-static)
1718
./hello_bsoncxx

examples/projects/mongocxx/pkg-config/static/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ CXX_STANDARD=${CXX_STANDARD:-11}
1515
rm -rf build/*
1616
cd build
1717
$CXX $CXXFLAGS -Wall -Wextra -Werror -std="c++${CXX_STANDARD}" -c -o hello_mongocxx.o ../../../hello_mongocxx.cpp $(pkg-config --cflags libmongocxx-static) $PKGCONFIG_EXTRA_OPTS
18-
$CXX $LDFLAGS -std="c++${CXX_STANDARD}" -o hello_mongocxx hello_mongocxx.o $(pkg-config --libs libmongocxx-static) $PKGCONFIG_EXTRA_OPTS
18+
# TODO: remove `-pthread` once CDRIVER-4776 is resolved.
19+
$CXX $LDFLAGS -pthread -std="c++${CXX_STANDARD}" -o hello_mongocxx hello_mongocxx.o $(pkg-config --libs libmongocxx-static) $PKGCONFIG_EXTRA_OPTS
1920
./hello_mongocxx

0 commit comments

Comments
 (0)