libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] libtool -- don't print warnings with --silent


From: John David Anglin
Subject: [PATCH] libtool -- don't print warnings with --silent
Date: Sat, 9 Jul 2011 19:03:33 -0400
User-agent: Mutt/1.5.16 (2007-06-09)

The attached patch fixes the boehm-gc testsuite on hppa2.0w-hp-hpux11.11.
Without it, libtool always generates an informational warning when linking
causing the entire boehm-gc testsuite to fail.

Ok?  Ralf would you please install in libtool tree if ok.

2011-07-09  John David Anglin  <address@hidden>

        PR boehm-gc/48494
        * ltmain.sh (func_warning): Don't print warnings if opt_silent is true.

Index: ltmain.sh
===================================================================
--- ltmain.sh   (revision 176045)
+++ ltmain.sh   (working copy)
@@ -437,7 +437,9 @@
 # Echo program name prefixed warning message to standard error.
 func_warning ()
 {
-    $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
+    ${opt_silent-false} || {
+      $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
+    }
 
     # bash bug again:
     :

Dave
-- 
J. David Anglin                                  address@hidden
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]