Skip to content

Commit 6c2c918

Browse files
committed
CDRIVER-2175 pthreads not correctly compiled in
1 parent 6040421 commit 6c2c918

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/Makefile.am

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ example_client_SOURCES = examples/example-client.c
4141
example_client_CFLAGS = $(EXAMPLE_CFLAGS)
4242
example_client_LDADD = $(EXAMPLE_LDADD)
4343

44+
EXAMPLE_POOL_LDADD =
45+
EXAMPLE_POOL_CFLAGS =
46+
if EXPLICIT_LIBS
47+
EXAMPLE_POOL_LDADD += $(PTHREAD_LIBS)
48+
EXAMPLE_POOL_CFLAGS += $(PTHREAD_CFLAGS)
49+
endif
50+
4451
noinst_PROGRAMS += example-pool
4552
example_pool_SOURCES = examples/example-pool.c
4653
example_pool_CFLAGS = $(EXAMPLE_CFLAGS) $(EXAMPLE_POOL_CFLAGS)

0 commit comments

Comments
 (0)