Author: Michael R. Crusoe <michael.crusoe@gmail.com>
Description: pthread is needed by the libraries we link to, but not us
--- libvcflib.orig/Makefile
+++ libvcflib/Makefile
@@ -125,11 +125,11 @@
 # Use the one we ship in tabixpp unless told otherwise by the environment
 HTS_LIB ?= $(VCF_LIB_LOCAL)/tabixpp/htslib/libhts.a
 HTS_INCLUDES ?= -I$(VCF_LIB_LOCAL)/tabixpp/htslib
-HTS_LDFLAGS ?= -L$(VCF_LIB_LOCAL)/tabixpp/htslib -lhts -lbz2 -lm -lz -llzma -pthread
+HTS_LDFLAGS ?= -L$(VCF_LIB_LOCAL)/tabixpp/htslib -lhts -lbz2 -lm -lz -llzma
 
 
 INCLUDES = $(HTS_INCLUDES) -I$(INC_DIR) 
-LDFLAGS = -L$(LIB_DIR) -lvcflib $(HTS_LDFLAGS) -lpthread -lz -lm -llzma -lbz2 -lssw
+LDFLAGS = -L$(LIB_DIR) -lvcflib $(HTS_LDFLAGS) -lz -lm -llzma -lbz2 -lssw
 
 all: $(OBJECTS) $(BINS) scriptToBin
 
