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

ChangeLog
ltmain.in

index 66258c154c36fe762e9875814c683965da1e8fc7..1a9045518859a43db410ed5f6a48ab0d0ad8c7c0 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-05-03  Alexandre Oliva  <aoliva@redhat.com>
 
        * configure.in: Bumped version to 1.4.0a.
index 0d0e59a1280471d142ba70feb7c22c4023492c19..4a9e5347f80daf04218c92917a617a3af69e3b90 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -3618,8 +3618,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