aboutsummaryrefslogtreecommitdiffstats
path: root/package/dropbear
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-02 12:47:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-03-02 12:47:52 +0000
commitc05198bf8ef1aae8c7ebc53aeec68e40404dc738 (patch)
tree28f79d646cdcf09a9996604d15f045351dae39b0 /package/dropbear
parent0670771013fc8abcc45ad95b32880bfeebcdb246 (diff)
downloadupstream-c05198bf8ef1aae8c7ebc53aeec68e40404dc738.tar.gz
upstream-c05198bf8ef1aae8c7ebc53aeec68e40404dc738.tar.bz2
upstream-c05198bf8ef1aae8c7ebc53aeec68e40404dc738.zip
dropbear: use -ffunction-sections, -fdata-sections and --gc-sections, saves 19k uncompressed
SVN-Revision: 25826
Diffstat (limited to 'package/dropbear')
-rw-r--r--package/dropbear/Makefile3
1 files changed, 2 insertions, 1 deletions
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