[lttng-dev] [PATCH] Fix: unresolvable dependencies to liblttng-ust-tracepoint when cross-compiling.

Henrik Hautakoski hhi08001 at student.mdh.se
Thu Aug 2 08:06:29 EDT 2012


Original patch by Christian Babeux that did not apply cleanly on upstream.

Co-author: Stefan Karlsson <skn07007 at student.mdh.se>
Signed-off-by: Henrik Hautakoski <hhi08001 at student.mdh.se>
---
 tests/fork/Makefile.am      |   12 ++++++++----
 tests/hello.cxx/Makefile.am |    4 +++-
 tests/hello/Makefile.am     |    4 +++-
 3 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/tests/fork/Makefile.am b/tests/fork/Makefile.am
index 0a649c7..b5830d7 100644
--- a/tests/fork/Makefile.am
+++ b/tests/fork/Makefile.am
@@ -2,11 +2,15 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -Wsystem-headers
 
 noinst_PROGRAMS = fork fork2
 fork_SOURCES = fork.c ust_tests_fork.h
-fork_LDADD = $(top_builddir)/liblttng-ust/liblttng-ust.la \
-		$(top_builddir)/liblttng-ust-fork/liblttng-ust-fork.la
+fork_LDADD = \
+	$(top_builddir)/liblttng-ust/liblttng-ust.la \
+	$(top_builddir)/liblttng-ust/liblttng-ust-tracepoint.la \
+	$(top_builddir)/liblttng-ust-fork/liblttng-ust-fork.la
 fork2_SOURCES = fork2.c
-fork2_LDADD = $(top_builddir)/liblttng-ust/liblttng-ust.la \
-		$(top_builddir)/liblttng-ust-fork/liblttng-ust-fork.la
+fork2_LDADD = \
+	$(top_builddir)/liblttng-ust/liblttng-ust.la \
+	$(top_builddir)/liblttng-ust/liblttng-ust-tracepoint.la \	
+	$(top_builddir)/liblttng-ust-fork/liblttng-ust-fork.la
 
 if LTTNG_UST_BUILD_WITH_LIBDL
 fork_LDADD += -ldl
diff --git a/tests/hello.cxx/Makefile.am b/tests/hello.cxx/Makefile.am
index f56f431..ea034df 100644
--- a/tests/hello.cxx/Makefile.am
+++ b/tests/hello.cxx/Makefile.am
@@ -2,7 +2,9 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -Wsystem-headers
 
 noinst_PROGRAMS = hello
 hello_SOURCES = hello.cpp tp.c ust_tests_hello.h
-hello_LDADD = $(top_builddir)/liblttng-ust/liblttng-ust.la
+hello_LDADD = \
+	$(top_builddir)/liblttng-ust/liblttng-ust.la \
+	$(top_builddir)/liblttng-ust/liblttng-ust-tracepoint.la
 
 if LTTNG_UST_BUILD_WITH_LIBDL
 hello_LDADD += -ldl
diff --git a/tests/hello/Makefile.am b/tests/hello/Makefile.am
index 0c4c311..c00ce8b 100644
--- a/tests/hello/Makefile.am
+++ b/tests/hello/Makefile.am
@@ -2,7 +2,9 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -Wsystem-headers
 
 noinst_PROGRAMS = hello
 hello_SOURCES = hello.c tp.c ust_tests_hello.h
-hello_LDADD = $(top_builddir)/liblttng-ust/liblttng-ust.la
+hello_LDADD = \
+	$(top_builddir)/liblttng-ust/liblttng-ust.la \
+	$(top_builddir)/liblttng-ust/liblttng-ust-tracepoint.la
 hello_CFLAGS = -Werror=old-style-definition
 
 if LTTNG_UST_BUILD_WITH_LIBDL
-- 
1.7.0.4




More information about the lttng-dev mailing list