1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 22:49:43 +02:00

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
This commit is contained in:
nbd 2011-03-02 12:47:57 +00:00
parent 523cbeba96
commit 2793dad6b5

View File

@ -33,12 +33,15 @@ define Package/dnsmasq/conffiles
/etc/dnsmasq.conf /etc/dnsmasq.conf
endef endef
TARGET_CFLAGS += -ffunction-sections -fdata-sections
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \
BINDIR="/usr/sbin" MANDIR="/usr/man" \ BINDIR="/usr/sbin" MANDIR="/usr/man" \
AWK="awk" \ AWK="awk" \
LDFLAGS="-Wl,--gc-sections" \
all all
endef endef