X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Flib%2FMakefile.am;h=849767a77e8a4ae96e6e5899a0191aa888a676c5;hp=dac6a73eb876c82b95f3a7fc48c23fea3755f739;hb=273b65be02bbefbfefc39a71687c23220b74867f;hpb=77b23b11274e476773b504c84f370031bbbb1f53 diff --git a/tests/lib/Makefile.am b/tests/lib/Makefile.am index dac6a73e..849767a7 100644 --- a/tests/lib/Makefile.am +++ b/tests/lib/Makefile.am @@ -6,6 +6,10 @@ LIBTAP=$(top_builddir)/tests/utils/tap/libtap.la libtestcommon_a_SOURCES = common.c common.h +# -Wl,--no-as-needed is needed for recent gold linker who seems to think +# it knows better and considers libraries with constructors having +# side-effects as dead code. +test_seek_LDFLAGS = -Wl,--no-as-needed test_seek_LDADD = $(LIBTAP) libtestcommon.a \ $(top_builddir)/lib/libbabeltrace.la \ $(top_builddir)/formats/ctf/libbabeltrace-ctf.la @@ -17,4 +21,20 @@ noinst_PROGRAMS = test_seek test_bitfield test_seek_SOURCES = test_seek.c test_bitfield_SOURCES = test_bitfield.c -EXTRA_DIST = test_seek_big_trace test_seek_empty_packet +SCRIPT_LIST = test_seek_big_trace test_seek_empty_packet + +dist_noinst_SCRIPTS = $(SCRIPT_LIST) + +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(SCRIPT_LIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi + +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(SCRIPT_LIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi