Fix: disable liblttng-ust-dl if dlinfo is not available in C library
authorRomain Naour <romain.naour@openwide.fr>
Sun, 6 Apr 2014 21:02:41 +0000 (23:02 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 7 Apr 2014 20:41:29 +0000 (16:41 -0400)
According to uClibc commit [1], dlinfo is not available.
To be able to use LTTng UST with uClibc, we need to disable
the Dynamic Linker Tracing functionality [2].

[1] http://git.uclibc.org/uClibc/commit/?id=f3c9dc499c5c787ddd8c4320f2d44d2ae6e40c22
[2] http://lists.lttng.org/pipermail/lttng-dev/2014-February/022423.html

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Makefile.am
configure.ac

index b79d2dd9086fde3e3a524286d129e4f45cdc5e17..c907ff1b64ad306fab50e18b1495c49e905f1f54 100644 (file)
@@ -4,11 +4,14 @@ SUBDIRS = . include snprintf libringbuffer liblttng-ust-comm \
                liblttng-ust \
                liblttng-ust-ctl \
                liblttng-ust-fork \
-               liblttng-ust-dl \
                liblttng-ust-libc-wrapper \
                liblttng-ust-cyg-profile \
                tools
 
+if HAVE_DLINFO
+SUBDIRS += liblttng-ust-dl
+endif
+
 if BUILD_JNI_INTERFACE
 SUBDIRS += liblttng-ust-java liblttng-ust-jul
 endif
index a62b2aa87e6579b7f2cedb886764ad506b98a59f..5d2d5dfdd67e0f1c2d0a053f41a6951de89177a6 100644 (file)
@@ -145,6 +145,9 @@ AC_C_INLINE
 AC_FUNC_MALLOC
 AC_CHECK_FUNCS([gettimeofday munmap socket strerror strtol sched_getcpu sysconf])
 
+AC_CHECK_FUNCS([dlinfo])
+AM_CONDITIONAL([HAVE_DLINFO], [test "${ac_cv_func_dlinfo}" = "yes"])
+
 CFLAGS="-Wall $CFLAGS"
 
 # URCU
This page took 0.025599 seconds and 4 git commands to generate.