From c1ff7e904b8186bcf3e2f5b9b1834ea81a007954 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Mon, 13 Feb 2006 17:02:53 +0000 Subject: [PATCH] * 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. --- ChangeLog | 4 ++++ ltmain.in | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9fa3542a8..f1be5f40d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-02-13 Ralf Wildenhues + * 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 : Add _AS_BOURNE_COMPATIBLE code from Autoconf, to fix issues with zsh and other shells. Reported by David Gómez Espinosa . diff --git a/ltmain.in b/ltmain.in index 154965004..e08000303 100644 --- 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" -- 2.47.3