summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/dropbear/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile
index 5bcc5fb9b..bb1230cef 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