libtool-patches
[Top][All Lists]
Advanced

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

FYI: libtool, Solaris, Sun Studio compiler


From: Ralf Wildenhues
Subject: FYI: libtool, Solaris, Sun Studio compiler
Date: Fri, 18 Mar 2005 15:31:23 +0100
User-agent: Mutt/1.4.1i

* Пухальский Юрий Андреевич wrote on Fri, Mar 18, 2005 at 03:09:30PM CET:
> 
> Applying the patch seems to have fixed my issue.

FYI: This is the actual backport I have committed to branch-1-5.

Regards,
Ralf

2005-03-18  Albert Chin-A-Young  <address@hidden>

        * libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG) [ solaris2.6+ ]:
        When linking convenience libraries on Solaris with the Sun C++
        compiler, pass convenience libraries through to the linker with
        -Qoption between allextract/defaultextract.  The Sun C++ compiler
        bundles -Qoption arguments so convenience libraries are linked with
        defaultextract otherwise.
        Backport of branch-2-0 patch dated 2004-03-14.

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:38:40 -0000
@@ -3422,9 +3422,13 @@
          *)
            # The C++ compiler is used as linker so we must use $wl
            # flag to pass the commands to the underlying system
-           # linker.
+           # linker. We must also pass each convience library through
+           # to the system linker between allextract/defaultextract.
+           # The C++ compiler will combine linker options so we
+           # cannot just pass the convience library names through
+           # without $wl.
            # 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)='${wl}-z 
${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && 
new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` 
${wl}-z ${wl}defaultextract'
            ;;
        esac
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes




reply via email to

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