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>.
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"