From 73e16a9a15d703cbffff54a6cc368bcc1ddd663d Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Mon, 27 Oct 2014 09:36:28 +0100 Subject: [PATCH] Link collectd-tg with -lpthread if available otherwise linking fails with undefined refs to pthread_mutex_* functions --- src/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2