aboutsummaryrefslogtreecommitdiff
path: root/package/collectd
diff options
context:
space:
mode:
authorGravatar Peter Seiderer <ps.report@gmx.net>2015-03-17 22:44:05 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-05 19:19:32 +0200
commit3f79f48764055b53cd548b8c62c357281aa816e4 (patch)
treed3e93bec4f9cd5d6ba8affdcae480ab1b126114a /package/collectd
parentdd6919e33d4b6b32c25f0a3cd366d1317846017a (diff)
downloadbuildroot-3f79f48764055b53cd548b8c62c357281aa816e4.tar.gz
buildroot-3f79f48764055b53cd548b8c62c357281aa816e4.tar.bz2
collectd: fix postgresql library detection
Explicitly link against -lpthread and -lm. Fixes ([1]): checking for PQconnectdb in -lpq... no checking for PQserverVersion in -lpq... no postgresql . . . . . no (dependency error) [1] http://autobuild.buildroot.org/results/926/926a43b8f635790d7e9abdc977ea803ddaf8a523/ [Thomas: - Rebase on top of master - Use += instead of =, which will avoid mistakes in the future.] Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/collectd')
-rw-r--r--package/collectd/collectd.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/collectd/collectd.mk b/package/collectd/collectd.mk
index 54a816f306..f02be55dc2 100644
--- a/package/collectd/collectd.mk
+++ b/package/collectd/collectd.mk
@@ -141,6 +141,7 @@ COLLECTD_CONF_OPTS += --with-libnetsnmp=$(STAGING_DIR)/usr/bin/net-snmp-config
endif
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
COLLECTD_CONF_OPTS += --with-libpq=$(STAGING_DIR)/usr/bin/pg_config
+COLLECTD_CONF_ENV += LIBS="-lpthread -lm"
endif
ifeq ($(BR2_PACKAGE_YAJL),y)
COLLECTD_CONF_OPTS += --with-yajl=$(STAGING_DIR)/usr