summaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2014-07-31 21:49:20 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-31 23:22:10 +0200
commit90b7d53cd18668729da49b097128fa4dcc7d9581 (patch)
tree179453a90d75df887e0dead18ced474b92b0b895 /package/dnsmasq
parentc7f4b964718bc5a3329bb730f59e24091ecbc7a2 (diff)
downloadbuildroot-90b7d53cd18668729da49b097128fa4dcc7d9581.tar.gz
buildroot-90b7d53cd18668729da49b097128fa4dcc7d9581.zip
package/dnsmasq: Fix link error with gettext
-lintl needs to be added at the end of the link command, Makefile has variable LIBS for this purpose, so use it instead of LDFLAGS. Fixes http://autobuild.buildroot.net/results/276/276581f6dbbe330799c3a7eaa26b453e38a22907/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/dnsmasq.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/dnsmasq/dnsmasq.mk b/package/dnsmasq/dnsmasq.mk
index 71d2f30290..6e97c68fcc 100644
--- a/package/dnsmasq/dnsmasq.mk
+++ b/package/dnsmasq/dnsmasq.mk
@@ -37,7 +37,7 @@ endif
# NLS requires IDN so only enable it (i18n) when IDN is true
ifeq ($(BR2_PACKAGE_DNSMASQ_IDN),y)
DNSMASQ_DEPENDENCIES += libidn $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-gettext
- DNSMASQ_MAKE_OPT += LDFLAGS+="-lidn $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)"
+ DNSMASQ_MAKE_OPT += LIBS+="$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),-lintl)"
DNSMASQ_COPTS += -DHAVE_IDN
DNSMASQ_I18N = $(if $(BR2_ENABLE_LOCALE),-i18n)
endif
@@ -58,7 +58,7 @@ ifeq ($(BR2_PACKAGE_DNSMASQ_LUA),y)
# liblua uses dlopen when dynamically linked
ifneq ($(BR2_PREFER_STATIC_LIB),y)
- DNSMASQ_MAKE_OPT += LIBS="-ldl"
+ DNSMASQ_MAKE_OPT += LIBS+="-ldl"
endif
define DNSMASQ_ENABLE_LUA
OpenPOWER on IntegriCloud