pppd: use -ffunction-sections, -fdata-sections and --gc-sections, saves 5k uncompressed
SVN-Revision: 25828
This commit is contained in:
parent
679dbee95f
commit
575a35c58d
1 changed files with 3 additions and 0 deletions
|
@ -140,6 +140,9 @@ $(call Build/Configure/Default,, \
|
||||||
$(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
|
$(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
MAKE_VARS += LDFLAGS="-Wl,--gc-sections"
|
||||||
|
|
||||||
MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
|
MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
|
||||||
PRECOMPILED_FILTER=1 \
|
PRECOMPILED_FILTER=1 \
|
||||||
STAGING_DIR="$(STAGING_DIR)"
|
STAGING_DIR="$(STAGING_DIR)"
|
||||||
|
|
Loading…
Reference in a new issue