special case for -pthread (bug 10876)
diff --git a/bin/mklib b/bin/mklib
index 09f4fac..21d48ed 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -100,6 +100,10 @@
 	-L*)
 	    DEPS="$DEPS $1"
 	    ;;
+	-pthread)
+	    # this is a special case (see bugzilla 10876)
+	    DEPS="$DEPS $1"
+	    ;;
 	'-cplusplus')
 	    CPLUSPLUS=1
 	    ;;