aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/mdadm
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-06-28 11:26:40 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-06-28 11:26:40 +0000
commit20df5d86af763e82ab3199868200d46125afe88f (patch)
treec2ebe2d04f09d48efefa484de2091ab4c21cb64a /package/utils/mdadm
parent84ad1782f90c5771f1ca6ffd80b72b0317820a8f (diff)
downloadupstream-20df5d86af763e82ab3199868200d46125afe88f.tar.gz
upstream-20df5d86af763e82ab3199868200d46125afe88f.tar.bz2
upstream-20df5d86af763e82ab3199868200d46125afe88f.zip
mdadm: use -ffunction-sections, -fdata-sections, --gc-sections
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37062
Diffstat (limited to 'package/utils/mdadm')
-rw-r--r--package/utils/mdadm/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/utils/mdadm/Makefile b/package/utils/mdadm/Makefile
index af16048136..6c4145ad6d 100644
--- a/package/utils/mdadm/Makefile
+++ b/package/utils/mdadm/Makefile
@@ -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)" \