From 083a935a985268708afbf595bb4a5e53c1226272 Mon Sep 17 00:00:00 2001 From: Paco Zamora Martinez Date: Sun, 22 Jun 2014 18:42:21 +0200 Subject: [PATCH] Added -lrt library --- Makefile.linux | 2 +- Makefile.macports | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.linux b/Makefile.linux index 284e3db..1263869 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -3,7 +3,7 @@ CFLAGS= -Wall -g -O2 -shared -fPIC -I/usr/include/mongo `pkg-config --cflags lua AR= ar rcu RANLIB= ranlib RM= rm -f -LIBS=`pkg-config --libs lua5.2` -lmongoclient -lssl -lboost_thread -lboost_filesystem +LIBS=`pkg-config --libs lua5.2` -lmongoclient -lssl -lboost_thread -lboost_filesystem -lrt OUTLIB=mongo.so LDFLAGS= $(LIBS) diff --git a/Makefile.macports b/Makefile.macports index 64a2947..779b150 100644 --- a/Makefile.macports +++ b/Makefile.macports @@ -3,7 +3,7 @@ CFLAGS= -Wall -g -O2 -fPIC `pkg-config --cflags "lua >= 5.2"` -I/opt/local/inclu AR= ar rcu RANLIB= ranlib RM= rm -f -LIBS=`pkg-config --libs "lua >= 5.2"` -lmongoclient -lssl -lboost_thread-mt -lboost_filesystem-mt -flat_namespace -bundle -L/opt/local/lib -rdynamic +LIBS=`pkg-config --libs "lua >= 5.2"` -lmongoclient -lssl -lboost_thread-mt -lboost_filesystem-mt -flat_namespace -bundle -L/opt/local/lib -rdynamic -lrt OUTLIB=mongo.so LDFLAGS= $(LIBS)