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:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user