[lttng-dev] [PATCH 1/1] liblttng-ust-libc: fix lib dependency

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Mon Feb 6 08:27:29 EST 2012


* Samuel Martin (smartin at aldebaran-robotics.com) wrote:
> liblttng-ust-libc.so depends on liblttng-ust.so but does not link
> against it.
> 
> z$ ../linux32-cross-i686-aldebaran-linux-gnu/bin/i686-aldebaran-linux-gnu-nm -CD output/target/usr/lib/liblttng-ust-libc.so | grep -E 'U ltt'
>          U ltt_probe_register
>          U ltt_probe_unregister
> z$ ../linux32-cross-i686-aldebaran-linux-gnu/bin/i686-aldebaran-linux-gnu-ldd --root output/target/ output/target/usr/lib/liblttng-ust-libc.so
>         liburcu-bp.so.1 => /usr/lib/liburcu-bp.so.1 (0xdeadbeef)
>         libpthread.so.0 => /lib/libpthread.so.0 (0xdeadbeef)
>         libc.so.6 => /lib/libc.so.6 (0xdeadbeef)
>         ld-linux.so.2 => /lib/ld-linux.so.2 (0xdeadbeef)
>         liburcu-common.so.1 => /usr/lib/liburcu-common.so.1 (0xdeadbeef)
>         libuuid.so.1 => /lib/libuuid.so.1 (0xdeadbeef)
>         libdl.so.2 => /lib/libdl.so.2 (0xdeadbeef)
> z$ ../linux32-cross-i686-aldebaran-linux-gnu/bin/i686-aldebaran-linux-gnu-nm -CD output/target/usr/lib/liblttng-ust.so | grep ltt_probe_
> 0000a5cc T ltt_probe_register
> 0000a7d6 T ltt_probe_unregister
> z$

merged, thanks!

Mathieu

> 
> Signed-off-by: Samuel Martin <smartin at aldebaran-robotics.com>
> ---
>  liblttng-ust-libc/Makefile.am |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/liblttng-ust-libc/Makefile.am b/liblttng-ust-libc/Makefile.am
> index 99f0afe..2dd5ca9 100644
> --- a/liblttng-ust-libc/Makefile.am
> +++ b/liblttng-ust-libc/Makefile.am
> @@ -5,7 +5,7 @@ lib_LTLIBRARIES = liblttng-ust-libc.la
>  liblttng_ust_libc_la_SOURCES = \
>  	lttng-ust-malloc.c \
>  	ust_libc.h
> -liblttng_ust_libc_la_LIBADD = -ldl
> +liblttng_ust_libc_la_LIBADD = -ldl -llttng-ust
>  
>  noinst_SCRIPTS = run
>  EXTRA_DIST = run
> -- 
> 1.7.9
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list