aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/firewall
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-07-11 19:23:43 +0200
committerFelix Fietkau <nbd@nbd.name>2018-07-13 17:22:53 +0200
commitef96d1e34a990871c912938c336f51a510b1e32f (patch)
treee9c6026fc7eea86c41a5fbe73d79eba40b768de9 /package/network/config/firewall
parentef16a394d2b24a363b50b5b4720cb23fe156c9da (diff)
downloadupstream-ef96d1e34a990871c912938c336f51a510b1e32f.tar.gz
upstream-ef96d1e34a990871c912938c336f51a510b1e32f.tar.bz2
upstream-ef96d1e34a990871c912938c336f51a510b1e32f.zip
firewall: compile with LTO enabled
Reduces .ipk size on MIPS from 41.6k to 41.1k Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/config/firewall')
-rw-r--r--package/network/config/firewall/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/config/firewall/Makefile b/package/network/config/firewall/Makefile
index 42d40e955c..d5337a3381 100644
--- a/package/network/config/firewall/Makefile
+++ b/package/network/config/firewall/Makefile
@@ -40,8 +40,8 @@ define Package/firewall/conffiles
/etc/firewall.user
endef
-TARGET_CFLAGS += -ffunction-sections -fdata-sections
-TARGET_LDFLAGS += -Wl,--gc-sections
+TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
+TARGET_LDFLAGS += -Wl,--gc-sections -flto
CMAKE_OPTIONS += $(if $(CONFIG_IPV6),,-DDISABLE_IPV6=1)
define Package/firewall/install