* ltmain.in (relink_command): Arrange for wrapper script to save
output to a variable and display it only if relinking fails.
diff --git a/ChangeLog b/ChangeLog
index 7690221..83b6d5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-03 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
+
+ * ltmain.in (relink_command): Arrange for wrapper script to save
+ output to a variable and display it only if relinking fails.
+
2001-04-27 Alexandre Oliva <aoliva@redhat.com>
* ltcf-cxx.sh: Add -nostdlib to HP-UX GCC archive_cmds.
diff --git a/ltmain.in b/ltmain.in
index db1f4a6..7c26afe 100644
--- a/ltmain.in
+++ b/ltmain.in
@@ -4056,8 +4056,9 @@
# relink executable if necessary
if test -n \"\$relink_command\"; then
- if (eval \$relink_command); then :
+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
else
+ $echo \"\$relink_command_output\" >&2
$rm \"\$progdir/\$file\"
exit 1
fi