X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Flib%2FMakefile.am;h=849767a77e8a4ae96e6e5899a0191aa888a676c5;hp=763b7bc0b9619c25acccc9d9efa39cc285206c56;hb=c0903f871e79d7dcec02deb2e2121be6bce16d9b;hpb=15553d19bf293941eb6476b92ad49617dd588aff diff --git a/tests/lib/Makefile.am b/tests/lib/Makefile.am index 763b7bc0..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