Fix: Add missing fork test program dependency library
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 6 Apr 2012 00:56:38 +0000 (20:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 6 Apr 2012 00:56:38 +0000 (20:56 -0400)
Only seem to affect some setups (e.g. older gcc ?) with the BSD
compatibility.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/fork/Makefile.am

index 48b3da2874481ebea7560d2e7edbbd2098ef79dd..0a649c73f2fb0aa83a612294a8ae5640cf56d536 100644 (file)
@@ -8,5 +8,14 @@ fork2_SOURCES = fork2.c
 fork2_LDADD = $(top_builddir)/liblttng-ust/liblttng-ust.la \
                $(top_builddir)/liblttng-ust-fork/liblttng-ust-fork.la
 
+if LTTNG_UST_BUILD_WITH_LIBDL
+fork_LDADD += -ldl
+fork2_LDADD += -ldl
+endif
+if LTTNG_UST_BUILD_WITH_LIBC_DL
+fork_LDADD += -lc
+fork2_LDADD += -lc
+endif
+
 noinst_SCRIPTS = run
 EXTRA_DIST = run
This page took 0.040675 seconds and 4 git commands to generate.