1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-02 21:09:29 +03:00

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
This commit is contained in:
nbd 2011-03-02 12:48:00 +00:00
parent 2793dad6b5
commit f5ab18e098

View File

@ -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)"