mdadm: use -ffunction-sections, -fdata-sections, --gc-sections
authorFelix Fietkau <nbd@openwrt.org>
Fri, 28 Jun 2013 11:26:40 +0000 (11:26 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 28 Jun 2013 11:26:40 +0000 (11:26 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37062

package/utils/mdadm/Makefile

index af160481365bdb09ea6460f62e40e21f136f6863..6c4145ad6d1075682fa2bce5a1fdb9041f20d215 100644 (file)
@@ -33,6 +33,9 @@ define Package/mdadm/description
  A tool for managing Linux Software RAID arrays.
 endef
 
+TARGET_CFLAGS += -ffunction-sections -fdata-sections
+TARGET_LDFLAGS += -Wl,--gc-sections
+
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                CC="$(TARGET_CC)" \