From e175a4d4f1b4dde21ae953d7a32e2b6882831417 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 13 Dec 2016 13:09:58 +0100 Subject: [PATCH] ppp: use --gc-sections to save a tiny bit of space Signed-off-by: Felix Fietkau --- 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 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)" -- 2.30.2