From: Felix Fietkau Date: Wed, 11 Jul 2018 17:35:40 +0000 (+0200) Subject: procd: compile with LTO enabled X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=73fc67b61480a3430d31de33478a1c0c2c364b9c;p=openwrt%2Fstaging%2Fjogo.git procd: compile with LTO enabled Reduces .ipk size on MIPS from 42k to 39k Signed-off-by: Felix Fietkau --- 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