aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-07-11 19:42:40 +0200
committerFelix Fietkau <nbd@nbd.name>2018-07-13 17:22:53 +0200
commit154c0c4006daf41e2cbb6c8b7ad5557f83dfea3e (patch)
treeeffb8b9a9b891f8ad4f0bd12f42cb84136869236 /package
parent73fc67b61480a3430d31de33478a1c0c2c364b9c (diff)
downloadupstream-154c0c4006daf41e2cbb6c8b7ad5557f83dfea3e.tar.gz
upstream-154c0c4006daf41e2cbb6c8b7ad5557f83dfea3e.tar.bz2
upstream-154c0c4006daf41e2cbb6c8b7ad5557f83dfea3e.zip
ubus: compile with LTO enabled
Reduces total .ipk size by about 1k Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package')
-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