From: nbd 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.rohieb.name/openwrt.git/commitdiff_plain/f5ab18e09899391933d19a92949a2c85babd8410?ds=inline 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 --- diff --git a/package/ppp/Makefile b/package/ppp/Makefile index fba518215..992d96649 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)"