From: Felix Fietkau Date: Wed, 11 Jul 2018 17:23:43 +0000 (+0200) Subject: firewall: compile with LTO enabled X-Git-Tag: v19.07.0-rc1~3165 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=ef96d1e34a990871c912938c336f51a510b1e32f;hp=ef16a394d2b24a363b50b5b4720cb23fe156c9da firewall: compile with LTO enabled Reduces .ipk size on MIPS from 41.6k to 41.1k Signed-off-by: Felix Fietkau --- 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