From: Christian Babeux Date: Fri, 2 Nov 2012 19:03:17 +0000 (-0400) Subject: Fix: Missing librt dependency in configure check for lttng-ust-ctl X-Git-Tag: v2.1.0-rc7~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b827d67e5385599deed8dc2b61ec064d40d067cd;p=lttng-tools.git Fix: Missing librt dependency in configure check for lttng-ust-ctl The lttng-ust-ctl library depends on librt. The AC_CHECK_LIBRARY macro can't automatically resolve dependents libraries (ala libtool), so any additionnals dependencies must be manually specified. Signed-off-by: Christian Babeux Signed-off-by: David Goulet --- diff --git a/configure.ac b/configure.ac index 0911b9a26..72daf7e0f 100644 --- a/configure.ac +++ b/configure.ac @@ -144,7 +144,7 @@ AS_IF([test "x$lttng_ust_support" = "xyes"], [ lttng_ust_ctl_found=yes ], [AC_MSG_ERROR([Cannot find LTTng-UST. Use [LDFLAGS]=-Ldir to specify its location, or specify --disable-lttng-ust to build lttng-tools without LTTng-UST support.])], - [-lurcu-common -lurcu-bp -lurcu-cds] + [-lurcu-common -lurcu-bp -lurcu-cds -lrt] ) ]) AM_CONDITIONAL([HAVE_LIBLTTNG_UST_CTL], [test "x$lttng_ust_ctl_found" = xyes])