]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (relink_command): Arrange for wrapper script to save binary-branchpoint
authorAndreas Jaeger <aj@suse.de>
Thu, 3 May 2001 15:39:52 +0000 (15:39 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 3 May 2001 15:39:52 +0000 (15:39 +0000)
output to a variable and display it only if relinking fails.

ChangeLog
ltmain.in

index 76902219c7f7063e1fe50888334b4d8db0c647c3..83b6d5db8123cb953e1e04475f10379f89671901 100644 (file)
--- 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.
index db1f4a670b9ee7335ddeb9b8013908cf1a4c07e2..7c26afe9a8fd513f8ee2e444e8c51b0cec1eae11 100644 (file)
--- 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