]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG) [ solaris2.6+ ]:
authorAlbert Chin-A-Young <china@thewrittenword.com>
Fri, 18 Mar 2005 14:39:48 +0000 (14:39 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 18 Mar 2005 14:39:48 +0000 (14:39 +0000)
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.

ChangeLog
libtool.m4

index 6781eb5b91b17f7f3adc4af81622c893c938e2ee..e0e85579b3f326ace9dd7e3da10abe30bb7088c2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-03-18  Albert Chin-A-Young  <china@thewrittenword.com>
+
+       * 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.
+
 2005-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * ltmain.in: unconditionally set IFS, and set it
index 392c26035483074c5e8f7b46cbeb7a8cc8e30679..9ec7a8b22ecf98f2fd4d32f73bdd11a63f9c386e 100644 (file)
@@ -3422,9 +3422,13 @@ case $host_os in
          *)
            # 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