From 6a1c210ea78738d971b8fd9b99fa91bb177297bd Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 28 Jun 2013 11:27:16 +0000 Subject: kexec-tools: reduce size Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37072 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/boot/kexec-tools/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/boot/kexec-tools/Makefile') diff --git a/package/boot/kexec-tools/Makefile b/package/boot/kexec-tools/Makefile index 541dca275a..40ba9eb525 100644 --- a/package/boot/kexec-tools/Makefile +++ b/package/boot/kexec-tools/Makefile @@ -56,6 +56,9 @@ CONFIGURE_ARGS = \ --sysconfdir=/etc \ $(if $(CONFIG_KEXEC_ZLIB),--with,--without)-zlib +TARGET_CFLAGS += -ffunction-sections -fdata-sections +TARGET_LDFLAGS += -Wl,--gc-sections + CONFIGURE_VARS += \ BUILD_CC="$(HOSTCC)" \ TARGET_CC="$(TARGET_CC)" -- cgit v1.2.3