e2fsprogs: use -ffunction-sections, -fdata-sections, --gc-sections
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37066
This commit is contained in:
parent
d383212f81
commit
1646855141
1 changed files with 3 additions and 1 deletions
|
@ -81,7 +81,8 @@ $(call Package/e2fsprogs)
|
||||||
DEPENDS:= +e2fsprogs
|
DEPENDS:= +e2fsprogs
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += $(FPIC)
|
TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
|
||||||
|
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-elf-shlibs \
|
--enable-elf-shlibs \
|
||||||
|
@ -105,6 +106,7 @@ define Build/Compile
|
||||||
LDFLAGS="" \
|
LDFLAGS="" \
|
||||||
subst
|
subst
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
|
LDFLAGS=-Wl,--gc-sections \
|
||||||
BUILDCC="$(HOSTCC)" \
|
BUILDCC="$(HOSTCC)" \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
LIBBLKID="$(PKG_BUILD_DIR)/lib/libblkid.a -luuid" \
|
LIBBLKID="$(PKG_BUILD_DIR)/lib/libblkid.a -luuid" \
|
||||||
|
|
Loading…
Reference in a new issue