procd: compile with LTO enabled
Reduces .ipk size on MIPS from 42k to 39k Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -37,6 +37,9 @@ endif
|
|||||||
CMAKE_OPTIONS += -DEARLY_PATH="$(TARGET_INIT_PATH)"
|
CMAKE_OPTIONS += -DEARLY_PATH="$(TARGET_INIT_PATH)"
|
||||||
TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
|
TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
|
||||||
|
|
||||||
|
TARGET_CFLAGS += -flto
|
||||||
|
TARGET_LDFLAGS += -flto
|
||||||
|
|
||||||
define Package/procd
|
define Package/procd
|
||||||
SECTION:=base
|
SECTION:=base
|
||||||
CATEGORY:=Base system
|
CATEGORY:=Base system
|
||||||
|
|||||||
Reference in New Issue
Block a user