Browse Source

dnsmasq: use -ffunction-sections, -fdata-sections and --gc-sections, saves 8k uncompressed

SVN-Revision: 25827
Felix Fietkau 15 years ago
parent
commit
679dbee95f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      package/dnsmasq/Makefile

+ 3 - 0
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