diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-07-11 19:35:40 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-07-13 17:22:53 +0200 |
commit | 73fc67b61480a3430d31de33478a1c0c2c364b9c (patch) | |
tree | e7a8236be5cf6ba2228408475ba597c55c62e2b2 /package/system/procd | |
parent | 47b42137ce1e931ae5871952b1f98438396f5e07 (diff) | |
download | mtk-20170518-73fc67b61480a3430d31de33478a1c0c2c364b9c.zip mtk-20170518-73fc67b61480a3430d31de33478a1c0c2c364b9c.tar.gz mtk-20170518-73fc67b61480a3430d31de33478a1c0c2c364b9c.tar.bz2 |
procd: compile with LTO enabled
Reduces .ipk size on MIPS from 42k to 39k
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/system/procd')
-rw-r--r-- | package/system/procd/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile index c989ad6..7433527 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 |