Skip to content

Commit 98e7244

Browse files
committed
build: add $(BSON_LIBS) for mongoc-rpc-validate test program.
This should fix builds on systems like Ubuntu with non-standard GNU ld configurations.
1 parent 979f1c1 commit 98e7244

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ noinst_PROGRAMS += mongoc-rpc-validate
3838
mongoc_rpc_validate_SOURCES = examples/mongoc-rpc-validate.c
3939
mongoc_rpc_validate_CFLAGS = -DMONGOC_COMPILATION $(EXAMPLE_CFLAGS)
4040
mongoc_rpc_validate_LDADD = libmongoc-priv.la
41+
if EXPLICIT_LIBS
42+
mongoc_rpc_validate_LDADD += $(BSON_LIBS)
43+
endif
4144

4245
noinst_PROGRAMS += mongoc-tail
4346
mongoc_tail_SOURCES = examples/mongoc-tail.c

0 commit comments

Comments
 (0)