projects
/
openwrt
/
staging
/
jow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9448627
)
ubus: compile with LTO enabled
author
Felix Fietkau
<
[email protected]
>
Wed, 11 Jul 2018 17:42:40 +0000
(19:42 +0200)
committer
Jo-Philipp Wich
<
[email protected]
>
Tue, 18 Dec 2018 16:32:20 +0000
(17:32 +0100)
Reduces total .ipk size by about 1k
Signed-off-by: Felix Fietkau <
[email protected]
>
(backported from
154c0c4006daf41e2cbb6c8b7ad5557f83dfea3e
)
package/system/ubus/Makefile
patch
|
blob
|
history
diff --git
a/package/system/ubus/Makefile
b/package/system/ubus/Makefile
index ef492d2c65c0e18d3670c7f449348000eb2b1447..8fd5cf6edbb16d86401547f911e3a5b2d093b91b 100644
(file)
--- 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