* [Buildroot] [PATCH 1/1] package/dnsmasq: Fix link error with gettext
@ 2014-07-31 19:49 Bernd Kuhls
2014-07-31 21:22 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2014-07-31 19:49 UTC (permalink / raw)
To: buildroot
-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>
---
package/dnsmasq/dnsmasq.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/dnsmasq/dnsmasq.mk b/package/dnsmasq/dnsmasq.mk
index 71d2f30..6e97c68 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
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/dnsmasq: Fix link error with gettext
2014-07-31 19:49 [Buildroot] [PATCH 1/1] package/dnsmasq: Fix link error with gettext Bernd Kuhls
@ 2014-07-31 21:22 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-07-31 21:22 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Thu, 31 Jul 2014 21:49:20 +0200, Bernd Kuhls wrote:
> -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>
> ---
> package/dnsmasq/dnsmasq.mk | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks. I didn't know that doing
make LIBS+=-lfoo LIBS+=-lbar
was actually working. But I tried, and it does.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-31 21:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 19:49 [Buildroot] [PATCH 1/1] package/dnsmasq: Fix link error with gettext Bernd Kuhls
2014-07-31 21:22 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox