summaryrefslogtreecommitdiff
path: root/package/utils/e2fsprogs
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-06-28 11:26:55 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-06-28 11:26:55 +0000
commitaf165ce6da3d17fe77180a29b0a74bfb75c47a7b (patch)
tree41726d50f86b62096896ea2f180aac22ca42e54b /package/utils/e2fsprogs
parente76c22cf6d43c9f520023cbc4d26a6a1f3932fc1 (diff)
e2fsprogs: use -ffunction-sections, -fdata-sections, --gc-sections
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37066 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/e2fsprogs')
-rw-r--r--package/utils/e2fsprogs/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/utils/e2fsprogs/Makefile b/package/utils/e2fsprogs/Makefile
index 783648cf63..e1e9aff3f0 100644
--- a/package/utils/e2fsprogs/Makefile
+++ b/package/utils/e2fsprogs/Makefile
@@ -81,7 +81,8 @@ $(call Package/e2fsprogs)
DEPENDS:= +e2fsprogs
endef
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
+
CONFIGURE_ARGS += \
--enable-elf-shlibs \
@@ -105,6 +106,7 @@ define Build/Compile
LDFLAGS="" \
subst
$(MAKE) -C $(PKG_BUILD_DIR) \
+ LDFLAGS=-Wl,--gc-sections \
BUILDCC="$(HOSTCC)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
LIBBLKID="$(PKG_BUILD_DIR)/lib/libblkid.a -luuid" \