mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
firewall: compile with LTO enabled
Reduces .ipk size on MIPS from 41.6k to 41.1k Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
ef16a394d2
commit
ef96d1e34a
1 changed files with 2 additions and 2 deletions
|
|
@ -40,8 +40,8 @@ define Package/firewall/conffiles
|
||||||
/etc/firewall.user
|
/etc/firewall.user
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
|
||||||
TARGET_LDFLAGS += -Wl,--gc-sections
|
TARGET_LDFLAGS += -Wl,--gc-sections -flto
|
||||||
CMAKE_OPTIONS += $(if $(CONFIG_IPV6),,-DDISABLE_IPV6=1)
|
CMAKE_OPTIONS += $(if $(CONFIG_IPV6),,-DDISABLE_IPV6=1)
|
||||||
|
|
||||||
define Package/firewall/install
|
define Package/firewall/install
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue