[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GCC with '-threads' on SOLARIS not supported by ltmain.sh
From: |
Ralf Wildenhues |
Subject: |
Re: GCC with '-threads' on SOLARIS not supported by ltmain.sh |
Date: |
Thu, 8 Jun 2006 18:55:22 +0200 |
User-agent: |
Mutt/1.5.11 |
Hi Eric,
* Eric PAIRE wrote on Thu, Jun 08, 2006 at 01:53:35PM CEST:
>
> I try to use libtool with a SOLARIS multithreaded library using SOLARIS
> threads (not PTRHEADS) and gcc. It occurs that the option to use with
> gcc '-threads' is not taken into account by ltmain.sh, whereas '-mt'
> (the one to be used with Sun CC) is. I read in the latest version
> (1.5.22) that the problem is still present.
I've applied these patches to HEAD and branch-1-5, respectively.
Thanks for the report!
Cheers,
Ralf
branch-1-5:
* ltmain.in (link mode): Honor `-threads', similar to `-mt'.
Report by Eric Paire <address@hidden>.
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.130
diff -u -r1.334.2.130 ltmain.in
--- ltmain.in 1 Jun 2006 19:09:55 -0000 1.334.2.130
+++ ltmain.in 8 Jun 2006 16:03:38 -0000
@@ -1640,7 +1640,7 @@
continue
;;
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
compiler_flags="$compiler_flags $arg"
compile_command="$compile_command $arg"
finalize_command="$finalize_command $arg"
@@ -2134,7 +2134,7 @@
lib=
found=no
case $deplib in
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
if test "$linkmode,$pass" = "prog,link"; then
compile_deplibs="$deplib $compile_deplibs"
finalize_deplibs="$deplib $finalize_deplibs"
HEAD:
* libltdl/config/ltmain.m4sh (func_mode_link): Honor `-threads',
similar to `-mt'.
Report by Eric Paire <address@hidden>.
Index: libltdl/config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v
retrieving revision 1.48
diff -u -r1.48 ltmain.m4sh
--- libltdl/config/ltmain.m4sh 19 May 2006 02:23:04 -0000 1.48
+++ libltdl/config/ltmain.m4sh 8 Jun 2006 16:05:42 -0000
@@ -2722,7 +2722,7 @@
continue
;;
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
compiler_flags="$compiler_flags $arg"
func_append compile_command " $arg"
func_append finalize_command " $arg"
@@ -3204,7 +3204,7 @@
lib=
found=no
case $deplib in
- -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
if test "$linkmode,$pass" = "prog,link"; then
compile_deplibs="$deplib $compile_deplibs"
finalize_deplibs="$deplib $finalize_deplibs"