From: Pavel Rochnyack Date: Sun, 2 Dec 2018 19:48:08 +0000 (+0700) Subject: write_mongodb: Fix plugin dependencies X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6e3a13ede14bb6cd31bf3f1e93bc9af63ba18544;p=collectd.git write_mongodb: Fix plugin dependencies Issue: #2900 --- diff --git a/Makefile.am b/Makefile.am index 2ef24427..e1fa3333 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1831,6 +1831,7 @@ pkglib_LTLIBRARIES += write_mongodb.la write_mongodb_la_SOURCES = src/write_mongodb.c write_mongodb_la_CFLAGS = $(AM_CFLAGS) $(BUILD_WITH_LIBMONGOC_CFLAGS) write_mongodb_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_LIBMONGOC_LDFLAGS) +write_mongodb_la_LIBADD = $(BUILD_WITH_LIBMONGOC_LIBS) endif if BUILD_PLUGIN_WRITE_PROMETHEUS diff --git a/configure.ac b/configure.ac index f39096e7..3c32cef9 100644 --- a/configure.ac +++ b/configure.ac @@ -3418,10 +3418,12 @@ fi if test "x$with_libmongoc" = "xyes"; then BUILD_WITH_LIBMONGOC_CFLAGS="$LIBMONGOC_CFLAGS" BUILD_WITH_LIBMONGOC_LDFLAGS="$LIBMONGOC_LDFLAGS" + BUILD_WITH_LIBMONGOC_LIBS="$LIBMONGOC_LIBS" fi AC_SUBST([BUILD_WITH_LIBMONGOC_CFLAGS]) AC_SUBST([BUILD_WITH_LIBMONGOC_LDFLAGS]) +AC_SUBST([BUILD_WITH_LIBMONGOC_LIBS]) # }}} # --with-libmosquitto {{{