From 575a35c58d95c6dca64a4ccf478ebd4feb487482 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 2 Mar 2011 12:48:00 +0000 Subject: [PATCH] pppd: use -ffunction-sections, -fdata-sections and --gc-sections, saves 5k uncompressed SVN-Revision: 25828 --- package/ppp/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/ppp/Makefile b/package/ppp/Makefile index fba51821597..992d9664975 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)" -- 2.30.2