bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TEST FAILURE] libtool-1.5.14, Solaris 9, Sun Compiler 5.5


From: Ralf Wildenhues
Subject: Re: [TEST FAILURE] libtool-1.5.14, Solaris 9, Sun Compiler 5.5
Date: Fri, 18 Mar 2005 15:43:41 +0100
User-agent: Mutt/1.4.1i

Sorry for the self-reply.

* Ralf Wildenhues wrote on Fri, Mar 18, 2005 at 02:49:38PM CET:
> * Ralf Menzel wrote on Tue, Feb 15, 2005 at 04:59:09PM CET:
> > 
> > the test suite give 7 failures for libtool-1.5.14 using SolarisĀ 9 and
> > the Sun Workshop compiler 5.5. I attach the output of `make check' to
> > this e-mail. The output of `./libtool --version' is:

> [ mdemo-make ..]
> | /usr/ccs/bin/ld -G -z text -h libmlib.so.0 -o .libs/libmlib.so.0.0.0  
> .libs/mlib.o -Wl,-z -Wl,allextract
> | +./../libltdl/.libs/libltdlc.a -Wl,-z -Wl,defaultextract  -ldl -lc
> | /usr/ccs/bin/ld: illegal option -- W

> Does the patch against branch-1-5 below help with the mdemo failures?

Forget that patch, it was bogus, sorry.  $wlarc needs to be expanded at
configure time.  Try this one instead.

>       * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [solaris]: Use ${wlarc}
>       and set to empty when using $LD for linking.
>       Reported by Ralf Menzel <address@hidden>.


Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.70
diff -u -r1.314.2.70 libtool.m4
--- libtool.m4  14 Mar 2005 11:12:05 -0000      1.314.2.70
+++ libtool.m4  18 Mar 2005 14:25:54 -0000
@@ -5757,10 +5761,12 @@
     solaris*)
       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
       if test "$GCC" = yes; then
+       wlarc='${wl}'
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o 
$lib $libobjs $deplibs $compiler_flags'
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > 
$lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo 
"local: *; };" >> $lib.exp~
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib 
$libobjs $deplibs $compiler_flags~$rm $lib.exp'
       else
+       wlarc=''
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h 
$soname -o $lib $libobjs $deplibs $linker_flags'
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > 
$lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo 
"local: *; };" >> $lib.exp~
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs 
$deplibs $linker_flags~$rm $lib.exp'
@@ -5770,7 +5776,7 @@
       case $host_os in
       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
-       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z 
${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="${wlarc}-z 
${wlarc}allextract\$convenience ${wlarc}-z ${wlarc}defaultextract" ;;
       esac
       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
       ;;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]