diff options
author | Jesse Gilles <jgilles@multitech.com> | 2015-04-21 09:50:18 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2015-04-21 09:50:18 -0500 |
commit | 087df0460e13e9fc79dcae97c4749021f87ae667 (patch) | |
tree | b2d892f81ac8d1bd317d6c15170bff86b27d549e | |
parent | 0ce3b7af11d666265e6123c005cd6f9b2c206fa2 (diff) | |
download | libmts-0.3.tar.gz libmts-0.3.tar.bz2 libmts-0.3.zip |
Makefile: add -lpthread for shared lib link0.3
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 ' ' |