aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-07-11 19:17:34 +0200
committerFelix Fietkau <nbd@nbd.name>2018-07-13 17:22:53 +0200
commite7397eef69a20fc630148d0e597523e139d21c0c (patch)
tree56348fb0ec56acf90acfb623871847e41810f95c /package/network/services
parentdfbd49bd223c408f6072ba4971eb7bce5cb81971 (diff)
downloadupstream-e7397eef69a20fc630148d0e597523e139d21c0c.tar.gz
upstream-e7397eef69a20fc630148d0e597523e139d21c0c.tar.bz2
upstream-e7397eef69a20fc630148d0e597523e139d21c0c.zip
ppp: compile with LTO enabled
Reduces .ipk size on MIPS from 98.5k to 98k Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/services')
-rw-r--r--package/network/services/ppp/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/ppp/Makefile b/package/network/services/ppp/Makefile
index beeaa53c22..60c07565f3 100644
--- 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 \