From: Felix Fietkau Date: Wed, 2 Mar 2011 12:48:00 +0000 (+0000) Subject: pppd: use -ffunction-sections, -fdata-sections and --gc-sections, saves 5k uncompressed X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=3db5a11480bcbc38fbd58c9e588098c67ed87c3b pppd: use -ffunction-sections, -fdata-sections and --gc-sections, saves 5k uncompressed SVN-Revision: 25828 --- diff --git a/package/ppp/Makefile b/package/ppp/Makefile index fba5182159..992d966497 100644 --- a/package/ppp/Makefile +++ b/package/ppp/Makefile @@ -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)"