From: Felix Fietkau Date: Tue, 13 Dec 2016 12:09:58 +0000 (+0100) Subject: ppp: use --gc-sections to save a tiny bit of space X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e175a4d4f1b4dde21ae953d7a32e2b6882831417;p=openwrt%2Fstaging%2Fluka.git ppp: use --gc-sections to save a tiny bit of space Signed-off-by: Felix Fietkau --- 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)"