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/ppp | |
parent | 679dbee95fe05b089f61d9fae8f41686ac4123ae (diff) | |
download | master-31e0f0ae-575a35c58d95c6dca64a4ccf478ebd4feb487482.tar.gz master-31e0f0ae-575a35c58d95c6dca64a4ccf478ebd4feb487482.tar.bz2 master-31e0f0ae-575a35c58d95c6dca64a4ccf478ebd4feb487482.zip |
pppd: use -ffunction-sections, -fdata-sections and --gc-sections, saves 5k uncompressed
SVN-Revision: 25828
Diffstat (limited to 'package/ppp')
-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 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)" |