pppd: use -ffunction-sections, -fdata-sections and --gc-sections, saves 5k uncompressed
authorFelix Fietkau <nbd@openwrt.org>
Wed, 2 Mar 2011 12:48:00 +0000 (12:48 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 2 Mar 2011 12:48:00 +0000 (12:48 +0000)
SVN-Revision: 25828

package/ppp/Makefile

index fba5182..992d966 100644 (file)
@@ -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)"