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>
This commit is contained in:
Corinna Vinschen 2022-02-03 16:21:13 +01:00
parent 7ae91f3b56
commit 4aeba49016
2 changed files with 2 additions and 2 deletions

View File

@ -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@

View File

@ -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 {