From: Hauke Mehrtens Date: Sun, 27 Oct 2019 21:38:53 +0000 (+0100) Subject: usign: Activate LTO compile option X-Git-Tag: v19.07.0-rc2~3 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a4d798e8dd61a65078d7bdfea3418cb699c47163;p=openwrt%2Fopenwrt.git 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 (cherry picked from commit 6ffd8a8f92ab5337ab967ab2922d7de7f0480bc9) --- diff --git a/package/system/usign/Makefile b/package/system/usign/Makefile index a2c97a8d7c..b27282698f 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