aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-02 12:48:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-03-02 12:48:00 +0000
commita0088333bdcc700192dc6a7250dcc26809133251 (patch)
tree13441ce8e9f22e54589660549198496296578c88 /package/ppp/Makefile
parentdc08d4eafccbc9fc2ccbe97f2e9022ed927d497a (diff)
downloadupstream-a0088333bdcc700192dc6a7250dcc26809133251.tar.gz
upstream-a0088333bdcc700192dc6a7250dcc26809133251.tar.bz2
upstream-a0088333bdcc700192dc6a7250dcc26809133251.zip
pppd: use -ffunction-sections, -fdata-sections and --gc-sections, saves 5k uncompressed
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25828 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/Makefile')
-rw-r--r--package/ppp/Makefile3
1 files changed, 3 insertions, 0 deletions
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)"