From: Landry Breuil Date: Mon, 27 Oct 2014 08:36:28 +0000 (+0100) Subject: Link collectd-tg with -lpthread if available X-Git-Tag: collectd-5.5.0~168^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=73e16a9a15d703cbffff54a6cc368bcc1ddd663d;p=collectd.git Link collectd-tg with -lpthread if available otherwise linking fails with undefined refs to pthread_mutex_* functions --- diff --git a/src/Makefile.am b/src/Makefile.am index 5c6adfe7..faec7b08 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -68,6 +68,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