From: Jan Blunck Date: Thu, 5 Nov 2009 15:24:09 +0000 (+0100) Subject: Link tests against libust-initializer.o as well X-Git-Tag: v1.9.1~828 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2cd35d512eb5bc63c2f9ebc1b748a54cd03cc4b3;p=lttng-ust.git Link tests against libust-initializer.o as well I don't find a proper way to let the libtool Automake magic automatically link against the initializer object as well. Therefore I need to add it manually to each testcase. Signed-off-by: Jan Blunck --- diff --git a/tests/basic/Makefile.am b/tests/basic/Makefile.am index 4915f13a..0fa45ea3 100644 --- a/tests/basic/Makefile.am +++ b/tests/basic/Makefile.am @@ -2,7 +2,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include noinst_PROGRAMS = basic basic_SOURCES = basic.c -basic_LDADD = $(top_builddir)/libust/libust.la +basic_LDADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o noinst_SCRIPTS = run EXTRA_DIST = run diff --git a/tests/basic/basic.c b/tests/basic/basic.c index c1fa8069..76a67ed2 100644 --- a/tests/basic/basic.c +++ b/tests/basic/basic.c @@ -17,5 +17,3 @@ int main() return 0; } - -MARKER_LIB; diff --git a/tests/basic_long/Makefile.am b/tests/basic_long/Makefile.am index 9f80a10d..24c45521 100644 --- a/tests/basic_long/Makefile.am +++ b/tests/basic_long/Makefile.am @@ -2,7 +2,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include noinst_PROGRAMS = basic_long basic_long_SOURCES = basic_long.c -basic_long_LDADD = $(top_builddir)/libust/libust.la +basic_long_LDADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o noinst_SCRIPTS = run EXTRA_DIST = run diff --git a/tests/basic_long/basic_long.c b/tests/basic_long/basic_long.c index 803d7ea6..fa25542e 100644 --- a/tests/basic_long/basic_long.c +++ b/tests/basic_long/basic_long.c @@ -15,5 +15,3 @@ int main() return 0; } - -MARKER_LIB; diff --git a/tests/fork/Makefile.am b/tests/fork/Makefile.am index 79fe085e..ef93b6f9 100644 --- a/tests/fork/Makefile.am +++ b/tests/fork/Makefile.am @@ -2,9 +2,9 @@ AM_CPPFLAGS = -I$(top_srcdir)/include noinst_PROGRAMS = fork fork2 fork_SOURCES = fork.c -fork_LDADD = $(top_builddir)/libust/libust.la +fork_LDADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o fork2_SOURCES = fork2.c -fork2_LDADD = $(top_builddir)/libust/libust.la +fork2_LDADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o noinst_SCRIPTS = run EXTRA_DIST = run diff --git a/tests/fork/fork.c b/tests/fork/fork.c index 241ef812..a8e8e4ee 100644 --- a/tests/fork/fork.c +++ b/tests/fork/fork.c @@ -44,5 +44,3 @@ int main(int argc, char **argv, char *env[]) return 0; } - -MARKER_LIB; diff --git a/tests/fork/fork2.c b/tests/fork/fork2.c index 63659c47..ae8f800d 100644 --- a/tests/fork/fork2.c +++ b/tests/fork/fork2.c @@ -11,5 +11,3 @@ int main() return 0; } - -MARKER_LIB; diff --git a/tests/hello/Makefile.am b/tests/hello/Makefile.am index e1046d20..aa92ee8c 100644 --- a/tests/hello/Makefile.am +++ b/tests/hello/Makefile.am @@ -2,7 +2,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include noinst_PROGRAMS = hello hello_SOURCES = hello.c tp.c tp.h -hello_LDADD = $(top_builddir)/libust/libust.la +hello_LDADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o noinst_SCRIPTS = run EXTRA_DIST = run diff --git a/tests/hello/hello.c b/tests/hello/hello.c index c48b6df5..4463a89f 100644 --- a/tests/hello/hello.c +++ b/tests/hello/hello.c @@ -70,6 +70,3 @@ int main() return 0; } - -MARKER_LIB; -TRACEPOINT_LIB; diff --git a/tests/hello2/Makefile.am b/tests/hello2/Makefile.am index 2a09dbe2..ded9d211 100644 --- a/tests/hello2/Makefile.am +++ b/tests/hello2/Makefile.am @@ -2,7 +2,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include noinst_PROGRAMS = hello2 hello2_SOURCES = hello2.c -hello2_LDADD = $(top_builddir)/libust/libust.la +hello2_LDADD = $(top_builddir)/libust/libust.la $(top_builddir)/libust-initializer.o noinst_SCRIPTS = run EXTRA_DIST = run diff --git a/tests/hello2/hello2.c b/tests/hello2/hello2.c index 17e478cf..06639b40 100644 --- a/tests/hello2/hello2.c +++ b/tests/hello2/hello2.c @@ -29,4 +29,3 @@ int main() return 0; } -MARKER_LIB;