Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] avahi: link with libintl if libglib2 is enabled
@ 2016-10-18 14:53 Johan Oudinet
  2016-10-18 15:25 ` Thomas Petazzoni
  2017-06-10 19:32 ` Bernd Kuhls
  0 siblings, 2 replies; 11+ messages in thread
From: Johan Oudinet @ 2016-10-18 14:53 UTC (permalink / raw)
  To: buildroot

Fix bug 9341: avahi-utils does not compile with uClibc and libglib2.

Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
---
 package/avahi/avahi.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk
index 069b45a..c9cf2bc 100644
--- a/package/avahi/avahi.mk
+++ b/package/avahi/avahi.mk
@@ -168,7 +168,9 @@ endif
 
 AVAHI_CONF_ENV += CFLAGS="$(AVAHI_CFLAGS)"
 
-AVAHI_MAKE_OPTS += $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),LIBS=-lintl)
+# If either locale or libglib2 is defined, avahi needs libintl.
+AVAHI_MAKE_OPTS += \
+	$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE)$(BR2_PACKAGE_LIBGLIB2),LIBS=-lintl)
 
 define AVAHI_USERS
 	avahi -1 avahi -1 * - - -
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-06-10 19:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 14:53 [Buildroot] [PATCH 1/1] avahi: link with libintl if libglib2 is enabled Johan Oudinet
2016-10-18 15:25 ` Thomas Petazzoni
2016-10-19 12:42   ` Johan Oudinet
2016-10-19 12:59     ` Thomas Petazzoni
2016-10-19 16:23       ` Johan Oudinet
2016-10-19 16:27         ` Arnout Vandecappelle
2016-10-19 17:25           ` Waldemar Brodkorb
2016-10-19 19:57             ` Thomas Petazzoni
2016-10-19 19:55           ` Thomas Petazzoni
2016-10-20  8:25             ` Arnout Vandecappelle
2017-06-10 19:32 ` Bernd Kuhls

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox