summaryrefslogtreecommitdiff
blob: 39abee03efa143d40bf44a9681bf68d0b7eef563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- ltmain.sh	2007-09-15 07:35:19 +0100
+++ ltmain.sh	2004-01-25 12:40:26 +0000
@@ -1854,6 +1840,15 @@
 	lib=
 	found=no
 	case $deplib in
+	-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+	  if test "$linkmode,$pass" = "prog,link"; then
+	    compile_deplibs="$deplib $compile_deplibs"
+	    finalize_deplibs="$deplib $finalize_deplibs"
+	  else
+	    deplibs="$deplib $deplibs"
+	  fi
+	  continue
+	  ;;
 	-l*)
 	  if test "$linkmode" != lib && test "$linkmode" != prog; then
 	    $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2