mtd-utils: activate --gc-sections
[openwrt/staging/dedeckeh.git] / package / utils / mtd-utils / Makefile
index 2ce7d671fee25c64d6be896dae45664c87ad8f3b..ca60726d81a94e298a9392147ce61c8e5b896509 100644 (file)
@@ -61,6 +61,9 @@ CONFIGURE_ARGS += \
        --without-xattr \
        --without-lzo
 
+TARGET_CFLAGS += -ffunction-sections -fdata-sections
+TARGET_LDFLAGS += -Wl,--gc-sections
+
 define Package/ubi-utils/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) \