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

ChangeLog
ltmain.in

index 9fa3542a802e3cda19f030afc9a723f5f8b77ba9..f1be5f40de454ca346dabcec4c30210ca109fb6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * ltmain.in (link mode) [ 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.
+
        * ltmain.in <startup, shell wrapper>: Add _AS_BOURNE_COMPATIBLE
        code from Autoconf, to fix issues with zsh and other shells.
        Reported by David Gómez Espinosa <david@pleyades.net>.
index 154965004c5a44bbdc9c288d41c5a211c7fd6958..e080003030c70f771d2e325fd53172df5da646e0 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -4265,12 +4265,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"