[Buildroot] [PATCH 1/1] avahi: link with libintl if libglib2 is enabled
Johan Oudinet
johan.oudinet at gmail.com
Tue Oct 18 14:53:23 UTC 2016
Fix bug 9341: avahi-utils does not compile with uClibc and libglib2.
Signed-off-by: Johan Oudinet <johan.oudinet at 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
More information about the buildroot
mailing list