diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-17 15:59:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-17 15:59:29 +0000 |
commit | 088eea282d0b6b33d089440e097422b7d4256145 (patch) | |
tree | 4fa77eaaa072b76bd81224209169e41c4f7a062e /package/network/utils/iproute2/Makefile | |
parent | 80b2fbc687919621cc9eaeee8fb4afcef4e5459b (diff) | |
download | upstream-088eea282d0b6b33d089440e097422b7d4256145.tar.gz upstream-088eea282d0b6b33d089440e097422b7d4256145.tar.bz2 upstream-088eea282d0b6b33d089440e097422b7d4256145.zip |
iproute2: reduce .ipk package size from ~100k down to ~60k
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39119
Diffstat (limited to 'package/network/utils/iproute2/Makefile')
-rw-r--r-- | package/network/utils/iproute2/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile index dbacd275c6..a44572db8e 100644 --- a/package/network/utils/iproute2/Makefile +++ b/package/network/utils/iproute2/Makefile @@ -69,10 +69,15 @@ ifdef CONFIG_USE_EGLIBC endif endif +TARGET_CFLAGS += -ffunction-sections -fdata-sections + MAKE_FLAGS += \ EXTRA_CCOPTS="$(TARGET_CFLAGS) -I../include -I$(STAGING_DIR)/usr/include/libnl-tiny" \ KERNEL_INCLUDE="$(LINUX_DIR)/include" \ - FPIC="$(FPIC)" + SHARED_LIBS="" \ + LDFLAGS="-Wl,--gc-sections" \ + IP_CONFIG_TINY=y \ + FPIC="" define Build/Compile +$(MAKE_VARS) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) |