X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=converter%2FMakefile.am;h=9443c2148848d681d1817ba462f11ac1c9b2f44a;hb=2f5d314fe2dd003583aec6ec11ba9425f8abdcba;hp=4d573616a278bb9d37af831eee041403f4825ef5;hpb=847bf71a4af4770390a59e8ef8e1fdfca33687b9;p=babeltrace.git diff --git a/converter/Makefile.am b/converter/Makefile.am index 4d573616..9443c214 100644 --- a/converter/Makefile.am +++ b/converter/Makefile.am @@ -1,20 +1,25 @@ AM_CFLAGS = $(PACKAGE_CFLAGS) -I$(top_srcdir)/include -lpopt -bin_PROGRAMS = babeltrace - -lib_LTLIBRARIES = libbabeltrace.la - -libbabeltrace_la_SOURCES = \ - babeltrace-lib.c - -libbabeltrace_la_LIBADD = \ - $(top_builddir)/types/libbabeltrace_types.la \ - $(top_builddir)/formats/ctf/libctf.la \ - $(top_builddir)/formats/ctf-text/libctf-text.la +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 = \ - libbabeltrace.la \ - $(top_builddir)/formats/libbabeltrace_registry.la + $(top_builddir)/lib/libbabeltrace.la \ + $(top_builddir)/formats/ctf/libctf.la \ + $(top_builddir)/formats/ctf/metadata/libctf-ast.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)/lib/libbabeltrace.la \ + $(top_builddir)/formats/ctf/libctf.la