From: Andreas Jaeger Date: Thu, 3 May 2001 15:39:52 +0000 (+0000) Subject: * ltmain.in (relink_command): Arrange for wrapper script to save X-Git-Tag: binary-branchpoint X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8d8948b8d5b88c07459b97bef8da9407450375b;p=thirdparty%2Flibtool.git * 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 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