From 748a47de54cb54275e60a366c1a38a4ae1d9dd2c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 5 Apr 2012 20:56:38 -0400 Subject: [PATCH] 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 --- tests/fork/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.34.1