aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/dnsmasq/Makefile
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2014-06-18 10:04:17 +0000
committerSteven Barth <cyrus@openwrt.org>2014-06-18 10:04:17 +0000
commitb3adc62b6257d254dad7c77d8083103a43d3e18c (patch)
tree38c0dc5631d0a08973928a444e0da14277dda493 /package/network/services/dnsmasq/Makefile
parent6dbafaa15d12dd3a836f57bf6173a321b0d1051e (diff)
downloadupstream-b3adc62b6257d254dad7c77d8083103a43d3e18c.tar.gz
upstream-b3adc62b6257d254dad7c77d8083103a43d3e18c.tar.bz2
upstream-b3adc62b6257d254dad7c77d8083103a43d3e18c.zip
dnsmasq: respect target's LDFLAGS
Append local flags, don't overwrite. Signed-off-by: Andre Heider <a.heider@gmail.com> SVN-Revision: 41242
Diffstat (limited to 'package/network/services/dnsmasq/Makefile')
-rw-r--r--package/network/services/dnsmasq/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile
index c0d3dc4f48..84736566df 100644
--- a/package/network/services/dnsmasq/Makefile
+++ b/package/network/services/dnsmasq/Makefile
@@ -62,6 +62,7 @@ endef
Package/dnsmasq-dhcpv6/conffiles = $(Package/dnsmasq/conffiles)
TARGET_CFLAGS += -ffunction-sections -fdata-sections
+TARGET_LDFLAGS += -Wl,--gc-sections
COPTS = $(if $(CONFIG_IPV6),,-DNO_IPV6) -DNO_IPSET -DNO_AUTH
@@ -72,7 +73,7 @@ endif
MAKE_FLAGS := \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS="-Wl,--gc-sections" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
COPTS="$(COPTS)" \
PREFIX="/usr"