projects
/
openwrt
/
staging
/
jow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
256e261
)
ppp: compile with LTO enabled
author
Felix Fietkau
<nbd@nbd.name>
Wed, 11 Jul 2018 17:17:34 +0000
(19:17 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Tue, 18 Dec 2018 16:32:20 +0000
(17:32 +0100)
Reduces .ipk size on MIPS from 98.5k to 98k
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(backported from
e7397eef69a20fc630148d0e597523e139d21c0c
)
package/network/services/ppp/Makefile
patch
|
blob
|
history
diff --git
a/package/network/services/ppp/Makefile
b/package/network/services/ppp/Makefile
index beeaa53c220c76ce9d875cd0ff2700186ab9654c..60c07565f3bd1749f086e940c5d9ffe545c107e3 100644
(file)
--- a/
package/network/services/ppp/Makefile
+++ b/
package/network/services/ppp/Makefile
@@
-189,8
+189,8
@@
$(call Build/Configure/Default,, \
$(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
endef
-TARGET_CFLAGS += -ffunction-sections -fdata-sections
-TARGET_LDFLAGS += -Wl,--gc-sections
+TARGET_CFLAGS += -ffunction-sections -fdata-sections
-flto
+TARGET_LDFLAGS += -Wl,--gc-sections
-flto -fuse-linker-plugin
MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
PRECOMPILED_FILTER=1 \