aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/busybox/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-07-11 18:30:03 +0200
committerFelix Fietkau <nbd@nbd.name>2018-07-13 17:22:53 +0200
commit8c11133c9de632dca69c8464f911d8e2716effe2 (patch)
tree9ecec6c266d096ed5258f204e32166365359aec7 /package/utils/busybox/patches
parent4e56af5ab481918764a373cf73b39843916f801b (diff)
downloadupstream-8c11133c9de632dca69c8464f911d8e2716effe2.tar.gz
upstream-8c11133c9de632dca69c8464f911d8e2716effe2.tar.bz2
upstream-8c11133c9de632dca69c8464f911d8e2716effe2.zip
busybox: compile with LTO enabled
In the default configuration on MIPS, it reduces the .ipk size from 214k to 207k Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/utils/busybox/patches')
-rw-r--r--package/utils/busybox/patches/120-lto-jobserver.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/utils/busybox/patches/120-lto-jobserver.patch b/package/utils/busybox/patches/120-lto-jobserver.patch
new file mode 100644
index 0000000000..99c5b51201
--- /dev/null
+++ b/package/utils/busybox/patches/120-lto-jobserver.patch
@@ -0,0 +1,27 @@
+--- a/scripts/Kbuild.include
++++ b/scripts/Kbuild.include
+@@ -130,7 +130,7 @@ make-cmd = $(subst \#,\\\#,$(subst $$,$$
+ #
+ if_changed = $(if $(strip $(filter-out $(PHONY),$?) \
+ $(call arg-check, $(cmd_$(1)), $(cmd_$@)) ), \
+- @set -e; \
++ +@set -e; \
+ $(echo-cmd) $(cmd_$(1)); \
+ echo 'cmd_$@ := $(make-cmd)' > $(@D)/.$(@F).cmd)
+
+@@ -139,7 +139,7 @@ if_changed = $(if $(strip $(filter-out $
+ if_changed_dep = $(if $(strip $(filter-out $(PHONY),$?) \
+ $(filter-out FORCE $(wildcard $^),$^) \
+ $(call arg-check, $(cmd_$(1)), $(cmd_$@)) ), \
+- @set -e; \
++ +@set -e; \
+ $(echo-cmd) $(cmd_$(1)); \
+ scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(@D)/.$(@F).tmp; \
+ rm -f $(depfile); \
+@@ -150,5 +150,5 @@ if_changed_dep = $(if $(strip $(filter-o
+ # and if so will execute $(rule_foo)
+ if_changed_rule = $(if $(strip $(filter-out $(PHONY),$?) \
+ $(call arg-check, $(cmd_$(1)), $(cmd_$@)) ),\
+- @set -e; \
++ +@set -e; \
+ $(rule_$(1)))