$OpenBSD: patch-admin_ltmain_sh,v 1.1 2005/03/29 21:18:37 espie Exp $ --- admin/ltmain.sh.orig Mon Jan 3 15:24:20 2005 +++ admin/ltmain.sh Wed Mar 23 08:51:07 2005 @@ -1307,6 +1307,17 @@ EOF continue ;; + -pthread) + case $host in + *-*-openbsd*) + deplibs="$deplibs $arg" + ;; + *) + continue + ;; + esac + ;; + -module) module=yes continue @@ -2003,6 +2014,30 @@ EOF fi continue ;; + -pthread) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + ;; + prog) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test "$pass" = scan; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + ;; + *) + ;; + esac # linkmode + continue + ;; # -pthread %DEPLIBS%) alldeplibs=yes continue