2008-01-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * libltdl/config/ltmain.m4sh (func_mode_link): When creating
+ reloadable object files, avoid issuing plain `rm -f' without
+ further arguments, even if the line length limit is ridiculously
+ low as in the `Run tests with low max_cmd_len' test. This
+ failure is exposed on NetBSD.
+ Report by Patrick Welche.
+
* Makefile.am (EXTRA_DIST): Add ChangeLog.2007.
* ChangeLog.2007: New, rotated, from...
* ChangeLog: ...here.
# reloadable object file. All subsequent reloadable object
# files will link in the last one created.
test -z "$concat_cmds" || concat_cmds=$concat_cmds~
- eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj~\$RM $last_robj\"
+ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
+ fi
delfiles="$delfiles $output"
else
# Append the command to create the export file.
test -z "$concat_cmds" || concat_cmds=$concat_cmds~
eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
- if test -n "$output"; then
+ if test -n "$last_robj"; then
eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
fi
fi