$OpenBSD: patch-ltmain_sh,v 1.4 2004/08/01 06:10:09 marcm Exp $ --- ltmain.sh.orig Sat May 1 23:43:48 2004 +++ ltmain.sh Sat Jul 24 23:15:53 2004 @@ -1374,6 +1374,17 @@ EOF continue ;; + -pthread) + case $host in + *-*-openbsd*) + deplibs="$deplibs $arg" + ;; + *) + continue + ;; + esac + ;; + -module) module=yes continue @@ -2022,6 +2033,19 @@ EOF newdlfiles="$newdlfiles $deplib" fi fi + continue + ;; + -pthread) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + newdependency_libs="$deplib $newdependency_libs" + ;; + prog) + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + ;; + esac continue ;; %DEPLIBS%)