Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] lttng-babeltrace: fix build with standalone gettext
@ 2016-03-19 20:12 Max Filippov
  2016-07-01  8:15 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Max Filippov @ 2016-03-19 20:12 UTC (permalink / raw)
  To: buildroot

lttng-babeltrace can't detect that uuid_generate is provided by -luuid
because the configure test fails with the following message:
  libuuid.a(libuuid_la-randutils.o): In function `random_get_bytes':
  randutils.c:(.text+0x204): undefined reference to `libintl_gettext'

Add LIBS=-lintl to configure options in case we're building with
standalone gettext.
Fixes:
  http://autobuild.buildroot.net/results/1ab89c6e8d704bc28c9ff8b5ffda3f60e57a25b4/

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 package/lttng-babeltrace/lttng-babeltrace.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/lttng-babeltrace/lttng-babeltrace.mk b/package/lttng-babeltrace/lttng-babeltrace.mk
index 5de77fb..cf57843 100644
--- a/package/lttng-babeltrace/lttng-babeltrace.mk
+++ b/package/lttng-babeltrace/lttng-babeltrace.mk
@@ -12,5 +12,9 @@ LTTNG_BABELTRACE_LICENSE_FILES = mit-license.txt gpl-2.0.txt LICENSE
 
 LTTNG_BABELTRACE_DEPENDENCIES = popt util-linux libglib2
 
+ifeq ($(BR2_NEEDS_GETTEXT),y)
+LTTNG_BABELTRACE_CONF_OPTS += LIBS=-lintl
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.1.4

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

end of thread, other threads:[~2016-07-01  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-19 20:12 [Buildroot] [PATCH] lttng-babeltrace: fix build with standalone gettext Max Filippov
2016-07-01  8:15 ` Thomas Petazzoni

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