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