Fix a linker error by linking against pthreads.
authorMichael Vrable <vrable@cs.hmc.edu>
Mon, 21 Oct 2013 16:47:00 +0000 (09:47 -0700)
committerMichael Vrable <vrable@cs.hmc.edu>
Sun, 26 Jan 2014 23:45:24 +0000 (15:45 -0800)
Makefile

index 454f1c4..6332115 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ DEBUG=-g
 CXXFLAGS=-O -Wall -Wextra -D_FILE_OFFSET_BITS=64 $(DEBUG) \
         $(shell pkg-config --cflags $(PACKAGES)) \
         -DCUMULUS_VERSION=$(shell cat version)
-LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES))
+LDFLAGS=$(DEBUG) $(shell pkg-config --libs $(PACKAGES)) -lpthread
 
 THIRD_PARTY_SRCS=chunk.cc sha1.cc sha256.cc
 SRCS=exclude.cc hash.cc localdb.cc main.cc metadata.cc ref.cc remote.cc \