$OpenBSD: patch-ltmain_sh,v 1.3 2004/06/23 03:23:48 marcm Exp $
--- ltmain.sh.orig	2004-04-11 20:01:57.000000000 -0600
+++ ltmain.sh	2004-06-20 11:32:29.000000000 -0600
@@ -1374,6 +1374,17 @@ EOF
 	continue
 	;;
 
+      -pthread)
+	case $host in
+	*-*-openbsd*)
+	  deplibs="$deplibs $arg"
+	  ;;
+	*)
+	  continue
+	  ;;
+	esac
+	;;
+
       -module)
 	module=yes
 	continue
@@ -2024,6 +2035,9 @@ EOF
 	  fi
 	  continue
 	  ;;
+	-pthread)
+	  continue
+	  ;;
 	%DEPLIBS%)
 	  alldeplibs=yes
 	  continue
