1 AM_CFLAGS = -I. -O2 -g -I../../../include
4 if LTTNG_TOOLS_BUILD_WITH_LIBDL
7 if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
12 # Do not build this test if shared libraries support was
13 # explicitly disabled.
15 # In order to test the health check feature, the libhealth* libs
16 # must be built as .so to be able to LD_PRELOAD them.
17 FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
18 -rpath $(abs_builddir)
20 # Health thread exit ld_preloaded test lib
21 libhealthexit_la_SOURCES=health_exit.c
22 libhealthexit_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
24 # Health thread stall ld_preloaded test lib
25 libhealthstall_la_SOURCES=health_stall.c
26 libhealthstall_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
28 noinst_PROGRAMS = health_check
29 noinst_LTLIBRARIES = libhealthexit.la libhealthstall.la
31 health_check_SOURCES = health_check.c $(UTILS)
32 health_check_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
33 $(top_builddir)/src/common/libcommon.la