Rebased from upstream / out of band repository.
[librecmc/librecmc.git] / package / utils / busybox / patches / 120-lto-jobserver.patch
1 --- a/scripts/Kbuild.include
2 +++ b/scripts/Kbuild.include
3 @@ -130,7 +130,7 @@ make-cmd = $(subst \#,\\\#,$(subst $$,$$
4  #
5  if_changed = $(if $(strip $(filter-out $(PHONY),$?)          \
6                 $(call arg-check, $(cmd_$(1)), $(cmd_$@)) ), \
7 -       @set -e; \
8 +       +@set -e; \
9         $(echo-cmd) $(cmd_$(1)); \
10         echo 'cmd_$@ := $(make-cmd)' > $(@D)/.$(@F).cmd)
11  
12 @@ -139,7 +139,7 @@ if_changed = $(if $(strip $(filter-out $
13  if_changed_dep = $(if $(strip $(filter-out $(PHONY),$?)  \
14                 $(filter-out FORCE $(wildcard $^),$^)    \
15         $(call arg-check, $(cmd_$(1)), $(cmd_$@)) ),     \
16 -       @set -e; \
17 +       +@set -e; \
18         $(echo-cmd) $(cmd_$(1)); \
19         scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(@D)/.$(@F).tmp; \
20         rm -f $(depfile); \
21 @@ -150,5 +150,5 @@ if_changed_dep = $(if $(strip $(filter-o
22  # and if so will execute $(rule_foo)
23  if_changed_rule = $(if $(strip $(filter-out $(PHONY),$?)            \
24                         $(call arg-check, $(cmd_$(1)), $(cmd_$@)) ),\
25 -                       @set -e; \
26 +                       +@set -e; \
27                         $(rule_$(1)))