[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -pthread etc. fix
From: |
Peter O'Gorman |
Subject: |
Re: -pthread etc. fix |
Date: |
Sun, 28 Sep 2003 01:05:21 +0900 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030916 Thunderbird/0.3a |
Bob Friesenhahn wrote:
No. This patch is not ok to apply. Look closely at how this list of
symbols is used by the acx_pthread macro. The options that do not
start with a dash are converted to library names (like -lpthread) and
are not compile/link options.
Doh!
Thanks Bob. One sec....
There, is that okay?
Peter
--
* Peter O'Gorman - http://www.pogma.com/ *
Index: ChangeLog
2003-09-27 Peter O'Gorman <address@hidden>
* ltmain.in: Allow -pthread etc. and put them in dependency_libs.
from Alfred M. Szmidt <address@hidden>
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.343
diff -u -r1.343 ltmain.in
--- ltmain.in 13 Sep 2003 12:02:04 -0000 1.343
+++ ltmain.in 27 Sep 2003 14:50:01 -0000
@@ -1300,6 +1300,10 @@
deplibs="$deplibs $arg"
continue
;;
+ -pthread|-pthreads|-kthread|-Kthread|-mthreads|--thread-safe|-mt)
+ deplibs="$deplibs $arg"
+ continue
+ ;;
-module)
module=yes
@@ -1821,6 +1825,11 @@
lib=
found=no
case $deplib in
+ -pthread|-pthreads|-kthread|-Kthread|-mthreads|--thread-safe|-mt)
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib
$newdependency_libs"
+ continue
+ ;;
-l*)
if test "$linkmode" != lib && test "$linkmode" != prog; then
$echo "$modename: warning: \`-l' is ignored for archives/objects"
1>&2