summaryrefslogtreecommitdiff
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-02 12:47:57 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-03-02 12:47:57 +0000
commit679dbee95fe05b089f61d9fae8f41686ac4123ae (patch)
tree5361d85ca8377be74418e33b0dcd150eb02ff716 /package/dnsmasq
parentc05198bf8ef1aae8c7ebc53aeec68e40404dc738 (diff)
downloadmtk-20170518-679dbee95fe05b089f61d9fae8f41686ac4123ae.zip
mtk-20170518-679dbee95fe05b089f61d9fae8f41686ac4123ae.tar.gz
mtk-20170518-679dbee95fe05b089f61d9fae8f41686ac4123ae.tar.bz2
dnsmasq: use -ffunction-sections, -fdata-sections and --gc-sections, saves 8k uncompressed
SVN-Revision: 25827
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/dnsmasq/Makefile b/package/dnsmasq/Makefile
index 493797f..b71db58 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