A new user interface for you! Read more...

File makefile.patch of Package mongo_fdw

--- Makefile.orig	2017-01-02 19:21:37.000000000 +0200
+++ Makefile	2017-04-16 23:47:15.726709350 +0300
@@ -11,17 +11,12 @@
 # We assume we are running on a POSIX compliant system (Linux, OSX). If you are
 # on another platform, change env_posix.os in MONGO_OBJS with the appropriate
 # environment object file.
-#
-LIBJSON = json-c
-LIBJSON_OBJS =  $(LIBJSON)/json_util.o $(LIBJSON)/json_object.o $(LIBJSON)/json_tokener.o \
-                                $(LIBJSON)/json_object_iterator.o $(LIBJSON)/printbuf.o $(LIBJSON)/linkhash.o \
-                                $(LIBJSON)/arraylist.o $(LIBJSON)/random_seed.o $(LIBJSON)/debug.o
 
-MONGO_INCLUDE = $(shell pkg-config --cflags libmongoc-1.0)
-PG_CPPFLAGS = --std=c99 $(MONGO_INCLUDE) -I$(LIBJSON) -DMETA_DRIVER
-SHLIB_LINK = $(shell pkg-config --libs libmongoc-1.0)
+MONGO_INCLUDE = $(shell pkg-config --cflags libmongoc-1.0 libbson-1.0)
+PG_CPPFLAGS = --std=c99 $(MONGO_INCLUDE) $(shell pkg-config --cflags json-c) -DMETA_DRIVER
+SHLIB_LINK = $(shell pkg-config --libs libmongoc-1.0) -ljson-c
 
-OBJS = connection.o option.o mongo_wrapper_meta.o mongo_fdw.o mongo_query.o $(LIBJSON_OBJS)
+OBJS = connection.o option.o mongo_wrapper_meta.o mongo_fdw.o mongo_query.o 
 
 
 EXTENSION = mongo_fdw