mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user