dropbear: use -ffunction-sections, -fdata-sections and --gc-sections, saves 19k uncom...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 2 Mar 2011 12:47:52 +0000 (12:47 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 2 Mar 2011 12:47:52 +0000 (12:47 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25826 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/dropbear/Makefile

index 5bcc5fb..bb1230c 100644 (file)
@@ -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
This page took 0.024502 seconds and 4 git commands to generate.