From 1e1612fc52d593e122787e56991f2e28cd257e6a Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Mon, 3 Dec 2018 02:48:08 +0700 Subject: [PATCH] write_mongodb: Fix plugin dependencies Issue: #2900 --- Makefile.am | 1 + configure.ac | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index eaff0dd1..8ca57d87 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2009,6 +2009,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 3b6d10e8..3d472798 100644 --- a/configure.ac +++ b/configure.ac @@ -3523,10 +3523,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 {{{ -- 2.11.0