summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2015-04-21 09:50:18 -0500
committerJesse Gilles <jgilles@multitech.com>2015-04-21 09:50:18 -0500
commit087df0460e13e9fc79dcae97c4749021f87ae667 (patch)
treeb2d892f81ac8d1bd317d6c15170bff86b27d549e
parent0ce3b7af11d666265e6123c005cd6f9b2c206fa2 (diff)
downloadlibmts-0.3.tar.gz
libmts-0.3.tar.bz2
libmts-0.3.zip
Makefile: add -lpthread for shared lib link0.3
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d1e6a87..04855ef 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@ include version
includedir ?= /usr/include
libdir ?= /usr/lib
+LIBS = -lpthread
+
OBJS += \
MTS_Buffer.o \
MTS_Condition.o \
@@ -16,7 +18,7 @@ MTS_Thread.o \
MTS_Timer.o \
MTS_TimerThread.o
-CPP_DEPPS+= \
+CPP_DEPPS += \
MTS_Buffer.d \
MTS_Condition.d \
MTS_Lock.d \
@@ -39,7 +41,7 @@ libmts.a: $(OBJS)
libmts.so.0: $(OBJS)
@echo 'Building target: $@'
- $(CXX) -shared -Wl,-soname,$@ -o libmts.so.$(VERSION) $(OBJS)
+ $(CXX) -shared -Wl,-soname,$@ -o libmts.so.$(VERSION) $(OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '