diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-03-02 12:48:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-03-02 12:48:00 +0000 |
commit | 575a35c58d95c6dca64a4ccf478ebd4feb487482 (patch) | |
tree | 446dc784d38d4de80f74d566521c77f8b746e6c0 /package | |
parent | 679dbee95fe05b089f61d9fae8f41686ac4123ae (diff) | |
download | mtk-20170518-575a35c58d95c6dca64a4ccf478ebd4feb487482.zip mtk-20170518-575a35c58d95c6dca64a4ccf478ebd4feb487482.tar.gz mtk-20170518-575a35c58d95c6dca64a4ccf478ebd4feb487482.tar.bz2 |
pppd: use -ffunction-sections, -fdata-sections and --gc-sections, saves 5k uncompressed
SVN-Revision: 25828
Diffstat (limited to 'package')
-rw-r--r-- | package/ppp/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/ppp/Makefile b/package/ppp/Makefile index fba5182..992d966 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)" |