From: Ralf Wildenhues Date: Mon, 13 Feb 2006 17:02:28 +0000 (+0000) Subject: * libltdl/config/ltmain.m4sh (func_mode_link) [ linux ]: X-Git-Tag: release-2-1b~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4cb10f1ba698362664565e74dd87dfe25b35c3d;p=thirdparty%2Flibtool.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 0e4206953..45bbd8115 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-02-13 Ralf Wildenhues + * 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) : Add _AS_BOURNE_COMPATIBLE code from Autoconf, to fix issues with zsh and other shells. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 87c974fbc..b92612593 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -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"