libtool
[Top][All Lists]
Advanced

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

PATCH: set --silent when run under make -s


From: Ben Elliston
Subject: PATCH: set --silent when run under make -s
Date: Mon, 25 Feb 2008 17:07:03 +1100

For a long time, I have carried this patch in copies of ltmain.sh in my
various trees.  It's a bit of a hack and not necessarily the best way to
go about it, but this post is intended to stimulate some discussion
about a way to get what I want.  :-)

When GCC and other GNU packages build large libraries using libtool,
libtool produces a lot of output.  For example, the compiler invocation
command is shown, even if make -s suppresses the libtool command itself.
This means that make -s is not silent at all; the building of libraries
is very noisy and defeats the purpose of make -s.

My patch detects when libtool is invoked by make -s and sets the same
flag (opt_silent) as if it were invoked with --silent.
Might my patch be accepted, as is?  Obviously I will need to supply some
changes to the documentation, too!

Cheers, Ben

2008-02-21  Ben Elliston  <address@hidden>

        * libltdl/config/ltmain.m4sh: Set opt_silent to `:' if MAKEFLAGS
        contains the `s' flag from make -s.

Index: libltdl/config/ltmain.m4sh
===================================================================
RCS file: /sources/libtool/libtool/libltdl/config/ltmain.m4sh,v
retrieving revision 1.97
diff -u -p -r1.97 ltmain.m4sh
--- libltdl/config/ltmain.m4sh  28 Jan 2008 15:49:46 -0000      1.97
+++ libltdl/config/ltmain.m4sh  25 Feb 2008 05:59:16 -0000
@@ -149,7 +149,7 @@ extracted_serial=0
 
 opt_dry_run=false
 opt_duplicate_deps=false
-opt_silent=false
+if echo "$MAKEFLAGS" | grep s > /dev/null ; then opt_silent=: ; else 
opt_silent=false; fi
 opt_debug=:
 
 # If this variable is set in any of the actions, the command in it






reply via email to

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