aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-10-27 22:38:53 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2019-11-08 23:57:54 +0100
commit6ffd8a8f92ab5337ab967ab2922d7de7f0480bc9 (patch)
tree4085c2574b9a61215dcc64229b4ec3c57f7be4e9 /package/system
parente926681387891fe9af89d884ebc3dce4c8c7f450 (diff)
downloadupstream-6ffd8a8f92ab5337ab967ab2922d7de7f0480bc9.tar.gz
upstream-6ffd8a8f92ab5337ab967ab2922d7de7f0480bc9.tar.bz2
upstream-6ffd8a8f92ab5337ab967ab2922d7de7f0480bc9.zip
usign: Activate LTO compile option
This decreases the size of the usign application by 16% on MIPS BE. old: 24,597 /usr/bin/usign new: 20,501 /usr/bin/usign Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/system')
-rw-r--r--package/system/usign/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/system/usign/Makefile b/package/system/usign/Makefile
index 836b1524d3..ab7fda33a3 100644
--- a/package/system/usign/Makefile
+++ b/package/system/usign/Makefile
@@ -30,6 +30,9 @@ define Package/usign
TITLE:=OpenWrt signature verification utility
endef
+TARGET_CFLAGS += -flto
+TARGET_LDFLAGS += -flto=jobserver
+
CMAKE_OPTIONS += \
-DUSE_LIBUBOX=on