aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-07-11 19:35:40 +0200
committerFelix Fietkau <nbd@nbd.name>2018-07-13 17:22:53 +0200
commit73fc67b61480a3430d31de33478a1c0c2c364b9c (patch)
treee7a8236be5cf6ba2228408475ba597c55c62e2b2
parent47b42137ce1e931ae5871952b1f98438396f5e07 (diff)
downloadupstream-73fc67b61480a3430d31de33478a1c0c2c364b9c.tar.gz
upstream-73fc67b61480a3430d31de33478a1c0c2c364b9c.tar.bz2
upstream-73fc67b61480a3430d31de33478a1c0c2c364b9c.zip
procd: compile with LTO enabled
Reduces .ipk size on MIPS from 42k to 39k Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/system/procd/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile
index c989ad660a..7433527774 100644
--- a/package/system/procd/Makefile
+++ b/package/system/procd/Makefile
@@ -37,6 +37,9 @@ endif
CMAKE_OPTIONS += -DEARLY_PATH="$(TARGET_INIT_PATH)"
TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
+TARGET_CFLAGS += -flto
+TARGET_LDFLAGS += -flto
+
define Package/procd
SECTION:=base
CATEGORY:=Base system