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