Link collectd-tg with pthreads
authorManuel Luis SanmartĂ­n Rozada <manuel.luis@gmail.com>
Sat, 8 Feb 2014 20:30:21 +0000 (21:30 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 2 Dec 2015 10:05:48 +0000 (11:05 +0100)
Signed-off-by: Florian Forster <octo@collectd.org>
src/Makefile.am

index 3f43531..ad8de2b 100644 (file)
@@ -129,6 +129,9 @@ endif
 if BUILD_AIX
 collectd_tg_LDADD += -lm
 endif
+if BUILD_WITH_LIBPTHREAD
+collectd_tg_LDADD += -lpthread
+endif
 collectd_tg_LDADD += libcollectdclient/libcollectdclient.la
 collectd_tg_DEPENDENCIES = libcollectdclient/libcollectdclient.la