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-a3cf2f4a3e73master
parent
a947385284
commit
dc08d4eafc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue