summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.build
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2011-04-20 13:45:30 +0200
committerMichal Marek <mmarek@suse.cz>2011-04-20 15:39:22 +0200
commit40df759e2b9ec945f1a5ddc61b3fdfbb6583257e (patch)
tree1d727592c947dbfe33ddf89718201615488088e8 /scripts/Makefile.build
parenta8b8017c34fefcb763d8b06c294b58d1c480b2e4 (diff)
downloadop-kernel-dev-40df759e2b9ec945f1a5ddc61b3fdfbb6583257e.zip
op-kernel-dev-40df759e2b9ec945f1a5ddc61b3fdfbb6583257e.tar.gz
kbuild: Fix build with binutils <= 2.19
The D option of ar is only available in newer versions. Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r--scripts/Makefile.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 5f87d37..e1244ef 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -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) rcsD $@)
+ rm -f $@; $(AR) rcs$(KBUILD_ARFLAGS) $@)
$(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) rcsD $@ $(lib-y)
+cmd_link_l_target = rm -f $@; $(AR) rcs$(KBUILD_ARFLAGS) $@ $(lib-y)
$(lib-target): $(lib-y) FORCE
$(call if_changed,link_l_target)
OpenPOWER on IntegriCloud