--- /dev/null
+--- ./Makefile.am
++++ ./Makefile.am
+@@ -60,7 +60,7 @@
+ rm -rf $(distdir)/_build/cmake
+ rm -rf $(distdir)/_inst/cmake
+
+-SUBDIRS = port libtiff tools build contrib test doc
++SUBDIRS = port libtiff build
+
+
+ NEW_LIBTIFF_RELEASE_DATE=$(shell date +"%Y%m%d")
--- /dev/null
+--- ./configure.ac
++++ ./configure.ac
+@@ -873,6 +873,7 @@
+ if test "x$enable_webp" != "xno" ; then
+
+ if test "x$with_webp_lib_dir" != "x" ; then
++ LIBS="-lpthread $LIBS"
+ LDFLAGS="-L$with_webp_lib_dir $LDFLAGS"
+ fi
+