ppp: use --gc-sections to save a tiny bit of space
authorFelix Fietkau <nbd@nbd.name>
Tue, 13 Dec 2016 12:09:58 +0000 (13:09 +0100)
committerFelix Fietkau <nbd@nbd.name>
Wed, 14 Dec 2016 11:13:13 +0000 (12:13 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/services/ppp/Makefile

index 2b78761..70af3a2 100644 (file)
@@ -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)"