aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/rtld-Rules10
1 files changed, 9 insertions, 1 deletions
diff --git a/elf/rtld-Rules b/elf/rtld-Rules
index 03fe25d5cd..98bb24af9b 100644
--- a/elf/rtld-Rules
+++ b/elf/rtld-Rules
@@ -42,10 +42,18 @@ $(objpfx)rtld-libc.a: $(foreach dir,$(rtld-subdirs),\
$(addprefix $(common-objpfx)$(dir)/rtld-,\
$(rtld-$(dir))))
@-rm -f $@T
- $(AR) cq $@T $^
+ $(AR) cq$(verbose) $@T $^
$(RANLIB) $@T
mv -f $@T $@
+# Use the verbose option of ar and tar when not running silently.
+ifeq "$(findstring s,$(MAKEFLAGS))" "" # if not -s
+verbose := v
+else # -s
+verbose :=
+endif # not -s
+
+
# For each subdirectory, define a pattern rule that makes all of that
# subdirectory's modules at once with one recursive make command.
object-suffixes-left := $(rtld-subdirs)