From 9adbdc8ceff06b765a30a3dad607bf903046dd0a Mon Sep 17 00:00:00 2001 From: Sreekanth Nagareddy Date: Wed, 17 Jan 2018 12:42:10 +0530 Subject: [PATCH] updated mongo libs pkg-config --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6fd0032f..252d5706 100644 --- a/Makefile +++ b/Makefile @@ -101,8 +101,8 @@ ifneq ($(BACKEND_MONGO), no) BACKENDSTR += MongoDB BE_CFLAGS += -I/usr/local/include/ - BE_CFLAGS += -I/usr/local/include/libmongoc-1.0/ - BE_CFLAGS += -I/usr/local/include/libbson-1.0/ + BE_CFLAGS +=`pkg-config --cflags-only-I libmongoc-1.0 libbson-1.0` + BE_LDFLAGS +=`pkg-config --libs-only-L libbson-1.0 libmongoc-1.0` BE_LDFLAGS += -L/usr/local/lib BE_LDADD += -lmongoc-1.0 -lbson-1.0 OBJS += be-mongo.o