netifd: compile with LTO enabled
Reduces .ipk size from 65k to 63k on MIPS Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
8c11133c9d
commit
07940acc34
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ endef
|
||||||
|
|
||||||
TARGET_CFLAGS += \
|
TARGET_CFLAGS += \
|
||||||
-I$(STAGING_DIR)/usr/include/libnl-tiny \
|
-I$(STAGING_DIR)/usr/include/libnl-tiny \
|
||||||
-I$(STAGING_DIR)/usr/include
|
-I$(STAGING_DIR)/usr/include \
|
||||||
|
-flto
|
||||||
|
|
||||||
|
TARGET_LDFLAGS += -flto -fuse-linker-plugin
|
||||||
|
|
||||||
CMAKE_OPTIONS += \
|
CMAKE_OPTIONS += \
|
||||||
-DLIBNL_LIBS=-lnl-tiny \
|
-DLIBNL_LIBS=-lnl-tiny \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue