projects
/
openwrt
/
staging
/
blocktrron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b4213
)
procd: compile with LTO enabled
author
Felix Fietkau
<nbd@nbd.name>
Wed, 11 Jul 2018 17:35:40 +0000
(19:35 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 13 Jul 2018 15:22:53 +0000
(17:22 +0200)
Reduces .ipk size on MIPS from 42k to 39k
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/system/procd/Makefile
patch
|
blob
|
history
diff --git
a/package/system/procd/Makefile
b/package/system/procd/Makefile
index c989ad660a837de12d226ba8bb73d677c59f4dcc..743352777466894bfb82499dda3c3c6c5c39c5a3 100644
(file)
--- 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