mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
dnsmasq: use -ffunction-sections, -fdata-sections and --gc-sections, saves 8k uncompressed
SVN-Revision: 25827
This commit is contained in:
parent
c05198bf8e
commit
679dbee95f
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user