Ver código fonte

ubus: compile with LTO enabled

Reduces total .ipk size by about 1k

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 7 anos atrás
pai
commit
154c0c4006
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      package/system/ubus/Makefile

+ 2 - 1
package/system/ubus/Makefile

@@ -47,7 +47,8 @@ define Package/libubus-lua
   TITLE:=Lua binding for the OpenWrt RPC client
 endef
 
-TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
+TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -flto
+TARGET_LDFLAGS += -flto
 
 CMAKE_OPTIONS = \
 	-DLUAPATH=/usr/lib/lua