[source] ppp: use --gc-sections to save a tiny bit of space

LEDE Commits lede-commits at lists.infradead.org
Wed Dec 14 03:13:57 PST 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/e175a4d4f1b4dde21ae953d7a32e2b6882831417

commit e175a4d4f1b4dde21ae953d7a32e2b6882831417
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Dec 13 13:09:58 2016 +0100

    ppp: use --gc-sections to save a tiny bit of space
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/network/services/ppp/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/network/services/ppp/Makefile b/package/network/services/ppp/Makefile
index 2b78761..70af3a2 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)"



More information about the lede-commits mailing list