Hello! Concatening commands breaks when export_symbols_cmds starts with something like "dump", which does not need another shell expansion step. Instead, it is merged with "\$concat_cmds" to "$concat_cmdsdump" for within the eval.
While this isn't a problem right now, it hits me when experimenting with shared library versioning support for AIX. Thank you! /haubi/
diff --git a/ChangeLog b/ChangeLog index dcfab26..aa5c9a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-06-22 Michael Haubenwallner <michael.haubenwall...@salomon.at> + + Correctly concat commands when export_symbols_cmds starts with 'word'. + * libltdl/config/ltmain.m4sh: When export_symbols_cmd starts with some + 'word', 'word' is joined with 'concat_cmds' to 'concat_cmdsword' due to + different expansion time: Need to embrace concat_cmds variable for + export_symbols_cmds too as for reload_cmds and old_archive_cmds. + 2011-04-10 Kurt Roeckx <k...@roeckx.be> tagdemo: do not rely on picking up symbols from indirect deps. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 9358ec5..53355c4 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -7636,7 +7636,7 @@ EOF libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" + eval concat_cmds=\"\${concat_cmds}$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi