All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1] collectd: fix postgresql library detection
@ 2015-03-17 21:44 Peter Seiderer
  2015-03-17 21:58 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Seiderer @ 2015-03-17 21:44 UTC (permalink / raw)
  To: buildroot

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/

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
 package/collectd/collectd.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/collectd/collectd.mk b/package/collectd/collectd.mk
index a4b91d6..4a40faa 100644
--- a/package/collectd/collectd.mk
+++ b/package/collectd/collectd.mk
@@ -141,6 +141,7 @@ ifeq ($(BR2_PACKAGE_NETSNMP),y)
 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
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-17 22:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-17 21:44 [Buildroot] [PATCH v1] collectd: fix postgresql library detection Peter Seiderer
2015-03-17 21:58 ` Thomas Petazzoni
2015-03-17 22:17   ` Peter Seiderer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.