From: Mathieu Desnoyers Date: Fri, 6 Apr 2012 00:56:38 +0000 (-0400) Subject: Fix: Add missing fork test program dependency library X-Git-Tag: v2.1.0-rc1~95 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=748a47de54cb54275e60a366c1a38a4ae1d9dd2c;p=lttng-ust.git Fix: Add missing fork test program dependency library Only seem to affect some setups (e.g. older gcc ?) with the BSD compatibility. Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/fork/Makefile.am b/tests/fork/Makefile.am index 48b3da28..0a649c73 100644 --- a/tests/fork/Makefile.am +++ b/tests/fork/Makefile.am @@ -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