public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: dllfixdbg: honor Makefile verbositiy flag "V"
@ 2022-02-03 15:31 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2022-02-03 15:31 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=4aeba490165bc8585fb1d18037718406c0ec4d5b

commit 4aeba490165bc8585fb1d18037718406c0ec4d5b
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu Feb 3 16:21:13 2022 +0100

    Cygwin: dllfixdbg: honor Makefile verbositiy flag "V"
    
    In Makefile.am, add the value of $(V) to the dllfixdbg call.
    In dllfixdbg, if V=1, print what the script is doing.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/Makefile.am | 2 +-
 winsup/cygwin/dllfixdbg   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/Makefile.am b/winsup/cygwin/Makefile.am
index 265b6bf69..6d2e9800d 100644
--- a/winsup/cygwin/Makefile.am
+++ b/winsup/cygwin/Makefile.am
@@ -640,7 +640,7 @@ $(PRE_DLL_NAME): $(LDSCRIPT) dllfixdbg libdll.a $(VERSION_OFILES) $(LIBSERVER)\
 	-lgcc -lkernel32 -lntdll -Wl,-Map,cygwin.map
 
 $(DBG_DLL_NAME) $(NEW_DLL_NAME): $(PRE_DLL_NAME)
-	$(AM_V_GEN)$(srcdir)/dllfixdbg $(OBJDUMP) $(OBJCOPY) $(PRE_DLL_NAME) $(DBG_DLL_NAME) $(NEW_DLL_NAME)
+	$(AM_V_GEN)$(srcdir)/dllfixdbg $(OBJDUMP) $(OBJCOPY) $(PRE_DLL_NAME) $(DBG_DLL_NAME) $(NEW_DLL_NAME) $(V)
 
 # cygwin import library
 toolopts=--cpu=@target_cpu@ --ar=@AR@ --as=@AS@ --nm=@NM@ --objcopy=@OBJCOPY@
diff --git a/winsup/cygwin/dllfixdbg b/winsup/cygwin/dllfixdbg
index e9e35aed1..87adec954 100755
--- a/winsup/cygwin/dllfixdbg
+++ b/winsup/cygwin/dllfixdbg
@@ -67,7 +67,7 @@ sub align {
 
 sub xit($@) {
     my $execit = shift;
-    #print "+ @_\n";
+    print "+ @_\n" if ($verbose);
     if ($execit) {
 	exec @_ or die "$0: couldn't exec $_[0] - $!\n";
     } else {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-03 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-03 15:31 [newlib-cygwin] Cygwin: dllfixdbg: honor Makefile verbositiy flag "V" Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).