From: Felix Fietkau Date: Wed, 2 Mar 2011 12:47:52 +0000 (+0000) Subject: dropbear: use -ffunction-sections, -fdata-sections and --gc-sections, saves 19k uncom... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=8120150ed7644699626c5c6d178cca2a90321771;ds=sidebyside dropbear: use -ffunction-sections, -fdata-sections and --gc-sections, saves 19k uncompressed SVN-Revision: 25826 --- diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile index 5bcc5fb9b0..bb1230cefc 100644 --- a/package/dropbear/Makefile +++ b/package/dropbear/Makefile @@ -65,7 +65,8 @@ CONFIGURE_ARGS += \ --disable-pututxline \ --disable-zlib -TARGET_CFLAGS += -DARGTYPE=3 +TARGET_CFLAGS += -DARGTYPE=3 -ffunction-sections -fdata-sections +TARGET_LDFLAGS += -Wl,--gc-sections define Build/Configure $(SED) 's,^/\* #define PKG_MULTI.*,#define PKG_MULTI,g' $(PKG_BUILD_DIR)/options.h