collectd: fix postgresql library detection
authorPeter Seiderer <ps.report@gmx.net>
Tue, 17 Mar 2015 21:44:05 +0000 (22:44 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 5 Apr 2015 17:19:32 +0000 (19:19 +0200)
commit3f79f48764055b53cd548b8c62c357281aa816e4
treed3e93bec4f9cd5d6ba8affdcae480ab1b126114a
parentdd6919e33d4b6b32c25f0a3cd366d1317846017a
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>
package/collectd/collectd.mk