summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/ppp/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/ppp/Makefile b/package/ppp/Makefile
index fba5182..992d966 100644
--- a/package/ppp/Makefile
+++ b/package/ppp/Makefile
@@ -140,6 +140,9 @@ $(call Build/Configure/Default,, \
$(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
endef
+TARGET_CFLAGS += -ffunction-sections -fdata-sections
+MAKE_VARS += LDFLAGS="-Wl,--gc-sections"
+
MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
PRECOMPILED_FILTER=1 \
STAGING_DIR="$(STAGING_DIR)"