openbsd-ports/x11/kde/patches-3.5.2/patch-admin_ltmain_sh
2006-04-01 10:49:17 +00:00

53 lines
1.0 KiB
Plaintext

$OpenBSD: patch-admin_ltmain_sh,v 1.1 2006/04/01 10:49:21 espie Exp $
--- admin/ltmain.sh.orig Fri Mar 17 22:43:31 2006
+++ admin/ltmain.sh Wed Mar 22 17:53:08 2006
@@ -1301,6 +1301,17 @@ EOF
continue
;;
+ -pthread)
+ case $host in
+ *-*-openbsd*)
+ deplibs="$deplibs $arg"
+ ;;
+ *)
+ continue
+ ;;
+ esac
+ ;;
+
-module)
module=yes
continue
@@ -1997,6 +2008,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