[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: osf5.1 + cc + -pthread
From: |
Peter O'Gorman |
Subject: |
Re: osf5.1 + cc + -pthread |
Date: |
Sun, 05 Dec 2004 20:53:09 +0900 |
User-agent: |
Mozilla Thunderbird 0.9 (Macintosh/20041103) |
Okay to apply to all current branches and HEAD? (this diff is branch-1-5)
Peter
--
Peter O'Gorman - http://www.pogma.com
Index: ChangeLog
2004-12-05 Peter O'Gorman <address@hidden>
* ltmain.in: Don't pass through compiler-like thread flags when
using $LD to do the linking. Reported by Mark_Andrews isc.org.
from Ralf Wildenhues <address@hidden>
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.41
diff -u -3 -p -u -r1.334.2.41 ltmain.in
--- ltmain.in 1 Dec 2004 18:00:58 -0000 1.334.2.41
+++ ltmain.in 5 Dec 2004 11:48:30 -0000
@@ -1488,7 +1488,10 @@ EOF
;;
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
- deplibs="$deplibs $arg"
+ case "$archive_cmds" in
+ *"\$LD"*) ;;
+ *) deplibs="$deplibs $arg";;
+ esac
continue
;;
@@ -1976,7 +1979,10 @@ EOF
compile_deplibs="$deplib $compile_deplibs"
finalize_deplibs="$deplib $finalize_deplibs"
else
- deplibs="$deplib $deplibs"
+ case "$archive_cmds" in
+ *"\$LD"*) ;;
+ *) deplibs="$deplib $deplibs";;
+ esac
fi
continue
;;