53 lines
1.0 KiB
Plaintext
53 lines
1.0 KiB
Plaintext
$OpenBSD: patch-admin_ltmain_sh,v 1.3 2006/11/05 13:02:30 espie Exp $
|
|
--- admin/ltmain.sh.orig Tue Sep 6 19:30:06 2005
|
|
+++ admin/ltmain.sh Tue Oct 17 10:33:48 2006
|
|
@@ -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
|