]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/config/ltmain.m4sh (func_mode_link) [ linux ]:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 13 Feb 2006 17:02:28 +0000 (17:02 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 13 Feb 2006 17:02:28 +0000 (17:02 +0000)
PGI: for `reload_cmds', we not only need to get rid of `$wl',
but also turn comma into space so $LD understands
whole_archive_flag_spec correctly.

ChangeLog
libltdl/config/ltmain.m4sh

index 0e42069538d71d3910b76f46173a5e646961b757..45bbd811570eda2ffa38130441708ba1e0ca1d6d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * libltdl/config/ltmain.m4sh (func_mode_link) [ linux ]:
+       PGI: for `reload_cmds', we not only need to get rid of `$wl',
+       but also turn comma into space so $LD understands
+       whole_archive_flag_spec correctly.
+
        * libltdl/config/ltmain.m4sh (func_mode_link) <shell wrapper>: 
        Add _AS_BOURNE_COMPATIBLE code from Autoconf, to fix issues
        with zsh and other shells.
index 87c974fbcbdf2b1703dd914faeeafed5a1444cb6..b926125930b864c509e895bc8a881719a5c789a5 100644 (file)
@@ -5419,12 +5419,14 @@ EOF
       reload_conv_objs=
       gentop=
       # reload_cmds runs $LD directly, so let us get rid of
-      # -Wl from whole_archive_flag_spec
+      # -Wl from whole_archive_flag_spec and hope we can get by with
+      # turning comma into space..
       wl=
 
       if test -n "$convenience"; then
        if test -n "$whole_archive_flag_spec"; then
-         eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
+         eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+         reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
        else
          gentop="$output_objdir/${obj}x"
          generated="$generated $gentop"