ubus: compile with LTO enabled
Reduces total .ipk size by about 1k Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
73fc67b614
commit
154c0c4006
1 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,8 @@ define Package/libubus-lua
|
||||||
TITLE:=Lua binding for the OpenWrt RPC client
|
TITLE:=Lua binding for the OpenWrt RPC client
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
|
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -flto
|
||||||
|
TARGET_LDFLAGS += -flto
|
||||||
|
|
||||||
CMAKE_OPTIONS = \
|
CMAKE_OPTIONS = \
|
||||||
-DLUAPATH=/usr/lib/lua
|
-DLUAPATH=/usr/lib/lua
|
||||||
|
|
Loading…
Reference in a new issue