From 73fc67b61480a3430d31de33478a1c0c2c364b9c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 11 Jul 2018 19:35:40 +0200 Subject: [PATCH] procd: compile with LTO enabled Reduces .ipk size on MIPS from 42k to 39k Signed-off-by: Felix Fietkau --- package/system/procd/Makefile | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2