Code

write_mongodb plugin: Fix the use of {CPP,LD}FLAGS.
authorFlorian Forster <octo@collectd.org>
Wed, 25 Jan 2012 10:47:37 +0000 (11:47 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 25 Jan 2012 10:47:37 +0000 (11:47 +0100)
Change-Id: Ieb8467d3c1d0fac819864ff873594432170289d3

src/Makefile.am

index 40ab5382261aa8e5be8442e55139ed0fd17620d2..702ee0fe225969840955a9af81f5d2a039ed8590 100644 (file)
@@ -1246,7 +1246,8 @@ endif
 if BUILD_PLUGIN_WRITE_MONGODB
 pkglib_LTLIBRARIES += write_mongodb.la
 write_mongodb_la_SOURCES = write_mongodb.c
-write_mongodb_la_LDFLAGS = -module -avoid-version
+write_mongodb_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBMONGOC_CPPFLAGS)
+write_mongodb_la_LDFLAGS = -module -avoid-version $(BUILD_WITH_LIBMONGOC_LDFLAGS)
 write_mongodb_la_LIBADD = -lmongoc
 collectd_LDADD += "-dlopen" write_mongodb.la
 collectd_DEPENDENCIES += write_mongodb.la