$OpenBSD: patch-ltmain_sh,v 1.2 2005/05/21 13:46:44 alek Exp $
--- ltmain.sh.orig	Sat Aug 21 02:03:43 2004
+++ ltmain.sh	Sun Oct 24 23:30:56 2004
@@ -127,7 +127,7 @@ nonopt=
 prev=
 prevopt=
 run=
-show="$echo"
+show=
 show_help=
 execute_dlfiles=
 lo2o="s/\\.lo\$/.${objext}/"
@@ -1492,6 +1492,17 @@ EOF
 	continue
 	;;
 
+      -pthread)
+	case $host in
+	*-*-openbsd*)
+	  deplibs="$deplibs $arg"
+	  ;;
+	*)
+	  continue
+	  ;;
+	esac
+	;;
+
       -module)
 	module=yes
 	continue
@@ -2155,6 +2166,9 @@ EOF
 	      newdlfiles="$newdlfiles $deplib"
 	    fi
 	  fi
+	  continue
+	  ;;
+	-pthread)
 	  continue
 	  ;;
 	%DEPLIBS%)
