From 2793dad6b5502ef1ae708a732c1a0ea1ef909988 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 2 Mar 2011 12:47:57 +0000 Subject: [PATCH] dnsmasq: use -ffunction-sections, -fdata-sections and --gc-sections, saves 8k uncompressed git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25827 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/dnsmasq/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/dnsmasq/Makefile b/package/dnsmasq/Makefile index 493797fa2..b71db5858 100644 --- a/package/dnsmasq/Makefile +++ b/package/dnsmasq/Makefile @@ -33,12 +33,15 @@ define Package/dnsmasq/conffiles /etc/dnsmasq.conf endef +TARGET_CFLAGS += -ffunction-sections -fdata-sections + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ BINDIR="/usr/sbin" MANDIR="/usr/man" \ AWK="awk" \ + LDFLAGS="-Wl,--gc-sections" \ all endef