aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-12-13 13:09:58 +0100
committerFelix Fietkau <nbd@nbd.name>2016-12-14 12:13:13 +0100
commite175a4d4f1b4dde21ae953d7a32e2b6882831417 (patch)
tree7bcde1c034a47207d7adb7b4d7e7db88714565a5 /package/network/services/ppp
parent4297f4f9014f8b2596cdfc38fe086e8c0653ffba (diff)
downloadupstream-e175a4d4f1b4dde21ae953d7a32e2b6882831417.tar.gz
upstream-e175a4d4f1b4dde21ae953d7a32e2b6882831417.tar.bz2
upstream-e175a4d4f1b4dde21ae953d7a32e2b6882831417.zip
ppp: use --gc-sections to save a tiny bit of space
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/services/ppp')
-rw-r--r--package/network/services/ppp/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/services/ppp/Makefile b/package/network/services/ppp/Makefile
index 2b78761ea5..70af3a2df5 100644
--- a/package/network/services/ppp/Makefile
+++ b/package/network/services/ppp/Makefile
@@ -172,6 +172,9 @@ $(call Build/Configure/Default,, \
$(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
endef
+TARGET_CFLAGS += -ffunction-sections -fdata-sections
+TARGET_LDFLAGS += -Wl,--gc-sections
+
MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
PRECOMPILED_FILTER=1 \
STAGING_DIR="$(STAGING_DIR)"