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 af16048..6c4145a 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)" \