This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "Fix" strip test failure


Alexandre Oliva <aoliva@redhat.com> writes:

> On May  2, 2001, Andreas Jaeger <aj@suse.de> wrote:
> 
> >> I'd rather have something that would save the error messages in a
> >> temporary file (or perhaps in a shell variable), and display them in
> >> case linking fails, or throw them away in case it succeeds.
> 
> > Like this?
> 
> I'm afraid not.  You've modified the code that relinks the program or
> the library at install time, but we don't need to be hide warnings at

:-(

> this point.  The relevant chunk of code is the one that evals
> relink_command a few lines below `temporary wrapper script for '...

> Will you please Cc: libtool-patches@gnu.org when you post the revised
> patch?
> 
> Thanks in advance for pursuing this issue.

Here's the revised patch.  Alexandre, shall I add this to the binutils
archive or will you import a new version of ltmain.sh instead?

Andreas

2001-05-02  Andreas Jaeger  <aj@suse.de>, Andreas Schwab <schwab@suse.de>

	* ltmain.sh (relink_command): Save output to a variable and
	display it only if relinking fails.

Index: ltmain.sh
===================================================================
RCS file: /cvs/src/src/ltmain.sh,v
retrieving revision 1.10
diff -u -r1.10 ltmain.sh
--- ltmain.sh	2001/04/20 09:28:05	1.10
+++ ltmain.sh	2001/05/03 12:31:56
@@ -4082,8 +4082,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

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]