aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/ubus/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/system/ubus/Makefile')
-rw-r--r--package/system/ubus/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/system/ubus/Makefile b/package/system/ubus/Makefile
index 7dc3c92dea..523c3629fc 100644
--- a/package/system/ubus/Makefile
+++ b/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