From: Felix Fietkau Date: Wed, 2 Mar 2011 12:47:57 +0000 (+0000) Subject: dnsmasq: use -ffunction-sections, -fdata-sections and --gc-sections, saves 8k uncompr... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=679dbee95fe05b089f61d9fae8f41686ac4123ae;p=openwrt%2Fstaging%2Fwigyori.git dnsmasq: use -ffunction-sections, -fdata-sections and --gc-sections, saves 8k uncompressed SVN-Revision: 25827 --- diff --git a/package/dnsmasq/Makefile b/package/dnsmasq/Makefile index 493797fa28..b71db58587 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