From: Florian Forster Date: Wed, 25 Jan 2012 10:47:37 +0000 (+0100) Subject: write_mongodb plugin: Fix the use of {CPP,LD}FLAGS. X-Git-Tag: collectd-5.1.0~42^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=44733bbe7d0585c9e459132053bd372ce0ba1630;p=collectd.git write_mongodb plugin: Fix the use of {CPP,LD}FLAGS. Change-Id: Ieb8467d3c1d0fac819864ff873594432170289d3 --- diff --git a/src/Makefile.am b/src/Makefile.am index 40ab5382..702ee0fe 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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