kbuild: Use the deterministic mode of ar
authorMichal Marek <mmarek@suse.cz>
Thu, 31 Mar 2011 14:09:47 +0000 (16:09 +0200)
committerMichal Marek <mmarek@suse.cz>
Mon, 18 Apr 2011 12:24:45 +0000 (14:24 +0200)
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/Makefile.build

index d5f925abe4d29710ab0b314bf28d29752b35dc8d..5f87d3709f9fe18eba67edc6c65ab560e1787482 100644 (file)
@@ -345,7 +345,7 @@ quiet_cmd_link_o_target = LD      $@
 cmd_link_o_target = $(if $(strip $(obj-y)),\
                      $(LD) $(ld_flags) -r -o $@ $(filter $(obj-y), $^) \
                      $(cmd_secanalysis),\
-                     rm -f $@; $(AR) rcs $@)
+                     rm -f $@; $(AR) rcsD $@)
 
 $(builtin-target): $(obj-y) FORCE
        $(call if_changed,link_o_target)
@@ -371,7 +371,7 @@ $(modorder-target): $(subdir-ym) FORCE
 #
 ifdef lib-target
 quiet_cmd_link_l_target = AR      $@
-cmd_link_l_target = rm -f $@; $(AR) rcs $@ $(lib-y)
+cmd_link_l_target = rm -f $@; $(AR) rcsD $@ $(lib-y)
 
 $(lib-target): $(lib-y) FORCE
        $(call if_changed,link_l_target)