X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=converter%2FMakefile.am;h=578280a681e4427f8d0fd9e47b348aa0e69bef2e;hp=66032beb290f71d45b5861f23625668a54db4704;hb=e8c92a62cb474a1bb64bcbfff47c17291751b959;hpb=34ac0e6c566323f5dd7c52214998b1cf2d3641b5 diff --git a/converter/Makefile.am b/converter/Makefile.am index 66032beb..578280a6 100644 --- a/converter/Makefile.am +++ b/converter/Makefile.am @@ -1,11 +1,25 @@ AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include -lpopt -bin_PROGRAMS = babeltrace +bin_PROGRAMS = babeltrace babeltrace-log babeltrace_SOURCES = \ babeltrace.c +# -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. Note: we put plugin dependencies on the +# executable rather than the library because libtool does not seem to +# issue the LDFLAGS before the rpaths, which makes it useless. +babeltrace_LDFLAGS = -Wl,--no-as-needed babeltrace_LDADD = \ - $(top_srcdir)/types/libtypes.a \ - $(top_srcdir)/formats/libregistry.a + $(top_builddir)/lib/libbabeltrace.la \ + $(top_builddir)/formats/libbabeltrace_registry.la \ + $(top_builddir)/formats/ctf/libctf.la \ + $(top_builddir)/formats/ctf-text/libctf-text.la \ + $(top_builddir)/formats/bt-dummy/libbt-dummy.la +babeltrace_log_SOURCES = babeltrace-log.c + +babeltrace_log_LDADD = \ + $(top_builddir)/formats/libbabeltrace_registry.la \ + $(top_builddir)/formats/ctf/libctf.la