projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move lttng_session unique_ptr to lttng/session-internal.hpp
[lttng-tools.git]
/
tests
/
regression
/
tools
/
health
/
Makefile.am
diff --git
a/tests/regression/tools/health/Makefile.am
b/tests/regression/tools/health/Makefile.am
index c244d65af535b37f77b8cf0b3c81e5687b19bcc4..da0d5f580266f5b25f0469ec508d2e6338ca0736 100644
(file)
--- a/
tests/regression/tools/health/Makefile.am
+++ b/
tests/regression/tools/health/Makefile.am
@@
-1,57
+1,56
@@
-AM_CFLAGS = -I. -O2 -g -I$(top_srcdir)/include
-AM_LDFLAGS =
+# SPDX-License-Identifier: GPL-2.0-only
-if LTTNG_TOOLS_BUILD_WITH_LIBDL
-AM_LDFLAGS += -ldl
-endif
-if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
-AM_LDFLAGS += -lc
-endif
+AM_CPPFLAGS += -I. -I$(top_srcdir)/include
+
+COPYSCRIPTS = test_thread_stall test_tp_fail \
+ test_health.sh test_thread_ok
+dist_noinst_SCRIPTS = $(COPYSCRIPTS)
if NO_SHARED
# Do not build this test if shared libraries support was
# explicitly disabled.
if NO_SHARED
# Do not build this test if shared libraries support was
# explicitly disabled.
+
+EXTRA_DIST = health_stall.c health_fail.c \
+ health_check.c $(COPYSCRIPTS)
+
else
# In order to test the health check feature, the libhealth* libs
# must be built as .so to be able to LD_PRELOAD them.
FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
-rpath $(abs_builddir)
else
# In order to test the health check feature, the libhealth* libs
# must be built as .so to be able to LD_PRELOAD them.
FORCE_SHARED_LIB_OPTIONS = -module -shared -avoid-version \
-rpath $(abs_builddir)
-# Health thread exit ld_preloaded test lib
-libhealthexit_la_SOURCES=health_exit.c
-libhealthexit_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
-
# Health thread stall ld_preloaded test lib
libhealthstall_la_SOURCES=health_stall.c
libhealthstall_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
# Health thread stall ld_preloaded test lib
libhealthstall_la_SOURCES=health_stall.c
libhealthstall_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
+libhealthstall_la_LIBADD = $(DL_LIBS)
# Health thread fail ld_preloaded test lib
libhealthtpfail_la_SOURCES=health_fail.c
libhealthtpfail_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
# Health thread fail ld_preloaded test lib
libhealthtpfail_la_SOURCES=health_fail.c
libhealthtpfail_la_LDFLAGS= $(FORCE_SHARED_LIB_OPTIONS)
+libhealthtpfail_la_LIBADD = $(DL_LIBS)
noinst_PROGRAMS = health_check
noinst_PROGRAMS = health_check
-noinst_LTLIBRARIES = libhealth
exit.la libhealth
stall.la libhealthtpfail.la
+noinst_LTLIBRARIES = libhealthstall.la libhealthtpfail.la
health_check_SOURCES = health_check.c $(UTILS)
health_check_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
health_check_SOURCES = health_check.c $(UTILS)
health_check_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
- $(top_builddir)/src/common/libcommon
.la
-endif
+ $(top_builddir)/src/common/libcommon
-gpl.la \
+ $(DL_LIBS)
-dist_noinst_SCRIPTS = test_thread_exit test_thread_stall test_tp_fail \
- test_health.sh test_thread_ok
-EXTRA_DIST = test_thread_exit test_thread_stall test_tp_fail \
- test_health.sh test_thread_ok
+EXTRA_DIST = $(COPYSCRIPTS)
+
+endif
all-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
all-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(
EXTRA_DIST
); do \
+ for script in $(
COPYSCRIPTS
); do \
cp -f $(srcdir)/$$script $(builddir); \
done; \
fi
clean-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
cp -f $(srcdir)/$$script $(builddir); \
done; \
fi
clean-local:
@if [ x"$(srcdir)" != x"$(builddir)" ]; then \
- for script in $(
EXTRA_DIST
); do \
+ for script in $(
COPYSCRIPTS
); do \
rm -f $(builddir)/$$script; \
done; \
fi
rm -f $(builddir)/$$script; \
done; \
fi
This page took
0.023774 seconds
and
4
git commands to generate.