From 087df0460e13e9fc79dcae97c4749021f87ae667 Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Tue, 21 Apr 2015 09:50:18 -0500 Subject: Makefile: add -lpthread for shared lib link --- Makefile | 6 ++++-- 1 file 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 ' ' -- cgit v1.2.3