projects
/
openwrt
/
staging
/
pepe2k.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73fc67b
)
ubus: compile with LTO enabled
author
Felix Fietkau
<nbd@nbd.name>
Wed, 11 Jul 2018 17:42:40 +0000
(19:42 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 13 Jul 2018 15:22:53 +0000
(17:22 +0200)
Reduces total .ipk size by about 1k
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/system/ubus/Makefile
patch
|
blob
|
history
diff --git
a/package/system/ubus/Makefile
b/package/system/ubus/Makefile
index 7dc3c92deadbaf0e15d8e0135585b6e8cbc0e8c5..523c3629fc6709d3418068303311a7ef2fd289db 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