From c8d8948b8d5b88c07459b97bef8da9407450375b Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 3 May 2001 15:39:52 +0000 Subject: [PATCH] * ltmain.in (relink_command): Arrange for wrapper script to save output to a variable and display it only if relinking fails. --- ChangeLog | 5 +++++ ltmain.in | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 76902219c..83b6d5db8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-05-03 Andreas Jaeger , Andreas Schwab + + * 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 * ltcf-cxx.sh: Add -nostdlib to HP-UX GCC archive_cmds. diff --git a/ltmain.in b/ltmain.in index db1f4a670..7c26afe9a 100644 --- a/ltmain.in +++ b/ltmain.in @@ -4056,8 +4056,9 @@ else # 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 -- 2.47.3